collab_client: Delete unused callWhenNotCommitting()

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

View file

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