mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
collab_client: Delete unused callWhenNotCommitting()
This commit is contained in:
parent
1adf24db79
commit
373d4fb0fb
2 changed files with 0 additions and 13 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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) => {
|
||||||
|
|
Loading…
Reference in a new issue