collab_client: Delete unused `callWhenNotCommitting()`
parent
1adf24db79
commit
373d4fb0fb
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue