Remove unused cancelRequested code that causes JS strict warnings.

This commit is contained in:
Edward Lee 2009-08-20 16:26:22 -07:00
parent e77295f6f7
commit 19f12428d3
2 changed files with 1 additions and 8 deletions

View File

@ -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

View File

@ -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?