mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Remove unused cancelRequested code that causes JS strict warnings.
This commit is contained in:
parent
e77295f6f7
commit
19f12428d3
@ -4,8 +4,6 @@ status.wait = Waiting for Current Sync to Finish
|
||||
status.active = Syncing with Weave
|
||||
status.success = Sync Complete
|
||||
status.error = Sync Failed
|
||||
status.cancel = Cancelling Sync, Please Wait
|
||||
status.cancelled = Sync Cancelled
|
||||
status.closing = Closing...
|
||||
|
||||
status.locked = Server Busy
|
||||
|
@ -243,9 +243,6 @@ WeaveSvc.prototype = {
|
||||
get isQuitting() { return this._isQuitting; },
|
||||
set isQuitting(value) { this._isQuitting = value; },
|
||||
|
||||
get cancelRequested() { return Engines.cancelRequested; },
|
||||
set cancelRequested(value) { Engines.cancelRequested = value; },
|
||||
|
||||
get keyGenEnabled() { return this._keyGenEnabled; },
|
||||
set keyGenEnabled(value) { this._keyGenEnabled = value; },
|
||||
|
||||
@ -1224,7 +1221,6 @@ WeaveSvc.prototype = {
|
||||
this._log.info("Sync completed successfully");
|
||||
}
|
||||
} finally {
|
||||
this.cancelRequested = false;
|
||||
this._syncError = false;
|
||||
}
|
||||
})))(),
|
||||
@ -1234,8 +1230,7 @@ WeaveSvc.prototype = {
|
||||
_syncEngine: function WeaveSvc__syncEngine(engine) {
|
||||
try {
|
||||
engine.sync();
|
||||
if (!this.cancelRequested)
|
||||
return true;
|
||||
return true;
|
||||
}
|
||||
catch(e) {
|
||||
// maybe a 401, cluster update needed?
|
||||
|
Loading…
Reference in New Issue
Block a user