1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-08-09 10:22:46 +03:00

Remove debug comments

This commit is contained in:
Kegan Dougal
2017-02-15 16:53:31 +00:00
parent 9fdeb7a8e3
commit b02ba08abc
2 changed files with 1 additions and 7 deletions

View File

@@ -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);
};
});

View File

@@ -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) => {