Remove unused jobqueue

// FREEBIE
This commit is contained in:
lilia 2016-05-01 15:51:07 -07:00
parent 050ea87aaf
commit 6266050a67
2 changed files with 0 additions and 34 deletions

View File

@ -35474,23 +35474,6 @@ Internal.SessionLock.queueJobForNumber = function queueJobForNumber(number, runJ
textsecure.storage.protocol = new SignalProtocolStore();
var protocolInstance = libsignal.protocol(textsecure.storage.protocol);
/*
* jobQueue manages multiple queues indexed by device to serialize
* session io ops on the database.
*/
var jobQueue = {};
function queueJobForNumber(number, runJob) {
var runPrevious = jobQueue[number] || Promise.resolve();
var runCurrent = jobQueue[number] = runPrevious.then(runJob, runJob);
runCurrent.then(function() {
if (jobQueue[number] === runCurrent) {
delete jobQueue[number];
}
});
return runCurrent;
}
window.textsecure = window.textsecure || {};
window.textsecure.protocol_wrapper = {
startWorker: function() {

View File

@ -9,23 +9,6 @@
textsecure.storage.protocol = new SignalProtocolStore();
var protocolInstance = libsignal.protocol(textsecure.storage.protocol);
/*
* jobQueue manages multiple queues indexed by device to serialize
* session io ops on the database.
*/
var jobQueue = {};
function queueJobForNumber(number, runJob) {
var runPrevious = jobQueue[number] || Promise.resolve();
var runCurrent = jobQueue[number] = runPrevious.then(runJob, runJob);
runCurrent.then(function() {
if (jobQueue[number] === runCurrent) {
delete jobQueue[number];
}
});
return runCurrent;
}
window.textsecure = window.textsecure || {};
window.textsecure.protocol_wrapper = {
startWorker: function() {