From 7a62016387c3cabe9a1f9d4250187a66d75ddbd7 Mon Sep 17 00:00:00 2001 From: lilia Date: Tue, 21 Jun 2016 15:52:06 -0700 Subject: [PATCH] Remove unused function Not used since removal of padding operations in 312efe2. --- dist/libsignal-protocol.js | 10 ---------- src/SessionCipher.js | 10 ---------- 2 files changed, 20 deletions(-) diff --git a/dist/libsignal-protocol.js b/dist/libsignal-protocol.js index 5256cde..89f8b37 100644 --- a/dist/libsignal-protocol.js +++ b/dist/libsignal-protocol.js @@ -36104,16 +36104,6 @@ SessionCipher.prototype = { }); }.bind(this)); }, - getPaddedMessageLength: function(messageLength) { - var messageLengthWithTerminator = messageLength + 1; - var messagePartCount = Math.floor(messageLengthWithTerminator / 160); - - if (messageLengthWithTerminator % 160 !== 0) { - messagePartCount++; - } - - return messagePartCount * 160; - }, decryptWhisperMessage: function(buffer, encoding) { buffer = dcodeIO.ByteBuffer.wrap(buffer, encoding).toArrayBuffer(); return Internal.SessionLock.queueJobForNumber(this.remoteAddress.toString(), function() { diff --git a/src/SessionCipher.js b/src/SessionCipher.js index 66bc002..2a6a7db 100644 --- a/src/SessionCipher.js +++ b/src/SessionCipher.js @@ -101,16 +101,6 @@ SessionCipher.prototype = { }); }.bind(this)); }, - getPaddedMessageLength: function(messageLength) { - var messageLengthWithTerminator = messageLength + 1; - var messagePartCount = Math.floor(messageLengthWithTerminator / 160); - - if (messageLengthWithTerminator % 160 !== 0) { - messagePartCount++; - } - - return messagePartCount * 160; - }, decryptWhisperMessage: function(buffer, encoding) { buffer = dcodeIO.ByteBuffer.wrap(buffer, encoding).toArrayBuffer(); return Internal.SessionLock.queueJobForNumber(this.remoteAddress.toString(), function() {