collab_client: Delete unused `callWhenNotCommitting()`

rhansen-collab_client
Richard Hansen 2021-04-01 02:55:22 -04:00
parent 1adf24db79
commit 373d4fb0fb
2 changed files with 0 additions and 13 deletions

View File

@ -102,9 +102,6 @@ class CollabClient {
this._serverMessageTaskQueue = new TaskQueue();
this._idleGate = new Gate();
this._idleGate.open();
this.addHistoricalAuthors(serverVars.historicalAuthorData);
this._tellAceActiveAuthorInfo(this._initialUserInfo);
@ -158,7 +155,6 @@ class CollabClient {
if (userChangesData.changeset) {
this._lastCommitTime = now;
this._committing = true;
this._idleGate = new Gate();
this._stateMessage = {
type: 'USER_CHANGES',
baseRev: this._rev,
@ -436,7 +432,6 @@ class CollabClient {
setStateIdle() {
this._committing = false;
this._idleGate.open();
this._callbacks.onInternalAction('newlyIdle');
}
@ -444,11 +439,6 @@ class CollabClient {
this._isPendingRevision = value;
}
async callWhenNotCommitting(func) {
await this._idleGate;
return await func();
}
setOnUserJoin(cb) {
this._callbacks.onUserJoin = cb;
}

View File

@ -715,9 +715,6 @@ const pad = {
.val(JSON.stringify(pad.collabClient.getMissedChanges()));
$('form#reconnectform').submit();
},
callWhenNotCommitting: (f) => {
pad.collabClient.callWhenNotCommitting(f);
},
getCollabRevisionNumber: () => pad.collabClient.getCurrentRevisionNumber(),
isFullyConnected: () => padconnectionstatus.isFullyConnected(),
addHistoricalAuthors: (data) => {