From daae66496570064afbc577f9b06a41c34e3df389 Mon Sep 17 00:00:00 2001 From: lilia Date: Tue, 3 May 2016 23:06:16 -0700 Subject: [PATCH] Remove unused function // FREEBIE --- js/libtextsecure.js | 13 ------------- libtextsecure/storage/devices.js | 13 ------------- 2 files changed, 26 deletions(-) diff --git a/js/libtextsecure.js b/js/libtextsecure.js index 3e92cf8b0eda..be36fad265d6 100644 --- a/js/libtextsecure.js +++ b/js/libtextsecure.js @@ -36837,19 +36837,6 @@ Internal.SessionLock.queueJobForNumber = function queueJobForNumber(number, runJ }); }); }, - getDeviceObjectsForNumber: function(number) { - return textsecure.storage.protocol.loadIdentityKey(number).then(function(identityKey) { - if (identityKey === undefined) { - return []; - } - return textsecure.storage.protocol.getDeviceIds(number).then(function(deviceIds) { - return Promise.all(deviceIds.map(function(deviceId) { - var address = new libsignal.SignalProtocolAddress(number, deviceId).toString(); - return { encodedNumber : address }; - })); - }); - }); - }, removeDeviceIdsForNumber: function(number, deviceIdsToRemove) { var promise = Promise.resolve(); diff --git a/libtextsecure/storage/devices.js b/libtextsecure/storage/devices.js index a9d68fa075b6..9c7300c28807 100644 --- a/libtextsecure/storage/devices.js +++ b/libtextsecure/storage/devices.js @@ -31,19 +31,6 @@ }); }); }, - getDeviceObjectsForNumber: function(number) { - return textsecure.storage.protocol.loadIdentityKey(number).then(function(identityKey) { - if (identityKey === undefined) { - return []; - } - return textsecure.storage.protocol.getDeviceIds(number).then(function(deviceIds) { - return Promise.all(deviceIds.map(function(deviceId) { - var address = new libsignal.SignalProtocolAddress(number, deviceId).toString(); - return { encodedNumber : address }; - })); - }); - }); - }, removeDeviceIdsForNumber: function(number, deviceIdsToRemove) { var promise = Promise.resolve();