From b02ba08abc44ffce851f09a4fbf0f900007ed3f7 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Wed, 15 Feb 2017 16:53:31 +0000 Subject: [PATCH] Remove debug comments --- src/store/indexeddb.js | 7 +------ src/sync-accumulator.js | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/store/indexeddb.js b/src/store/indexeddb.js index 25f032274..d17929e31 100644 --- a/src/store/indexeddb.js +++ b/src/store/indexeddb.js @@ -89,7 +89,7 @@ IndexedDBStoreBackend.prototype = { * @return {Promise} Resolves if the data was persisted. */ persistSyncData: function(nextBatch, roomsData) { - console.log("persisting sync data"); + console.log("Persisting sync data up to ", nextBatch); return q.try(() => { const txn = this.db.transaction(["sync"], "readwrite"); const store = txn.objectStore("sync"); @@ -308,7 +308,6 @@ IndexedDBStore.prototype._setSyncData = function(nextBatch, roomsData) { }; IndexedDBStore.prototype._syncToDatabase = function() { - console.log("_syncToDatabase"); this._syncTs = Date.now(); // set now to guard against multi-writes // work out changed users (this doesn't handle deletions but you @@ -381,11 +380,9 @@ function selectQuery(store, keyRange, resultMapper) { function promiseifyTxn(txn) { return new q.Promise((resolve, reject) => { txn.oncomplete = function(event) { - console.log("txn success:", event); resolve(event); }; txn.onerror = function(event) { - console.error("txn fail:", event); reject(event); }; }); @@ -394,11 +391,9 @@ function promiseifyTxn(txn) { function promiseifyRequest(req) { return new q.Promise((resolve, reject) => { req.onsuccess = function(event) { - console.log("req success:", event); resolve(event); }; req.onerror = function(event) { - console.error("req fail:", event); reject(event); }; }); diff --git a/src/sync-accumulator.js b/src/sync-accumulator.js index 07fce8d06..ed071c9ff 100644 --- a/src/sync-accumulator.js +++ b/src/sync-accumulator.js @@ -77,7 +77,6 @@ class SyncAccumulator { if (!syncResponse.rooms) { return; } - console.log("Accumulating ", syncResponse.next_batch, syncResponse); this.nextBatch = syncResponse.next_batch; if (syncResponse.rooms.invite) { Object.keys(syncResponse.rooms.invite).forEach((roomId) => {