Remove Zotero.DataObject._eraseRecoverFromFailure()
This commit is contained in:
parent
4b040c78a7
commit
f68a595a2b
1 changed files with 1 additions and 9 deletions
|
@ -611,11 +611,7 @@ Zotero.DataObject.prototype.erase = Zotero.Promise.coroutine(function* () {
|
||||||
yield Zotero.DB.executeTransaction(function* () {
|
yield Zotero.DB.executeTransaction(function* () {
|
||||||
yield this._eraseData(env);
|
yield this._eraseData(env);
|
||||||
yield this._erasePreCommit(env);
|
yield this._erasePreCommit(env);
|
||||||
}.bind(this))
|
}.bind(this));
|
||||||
.catch(e => {
|
|
||||||
Zotero.debug(e);
|
|
||||||
return this._eraseRecoverFromFailure(env);
|
|
||||||
});
|
|
||||||
|
|
||||||
return this._erasePostCommit(env);
|
return this._erasePostCommit(env);
|
||||||
});
|
});
|
||||||
|
@ -638,10 +634,6 @@ Zotero.DataObject.prototype._erasePostCommit = function(env) {
|
||||||
return Zotero.Promise.resolve();
|
return Zotero.Promise.resolve();
|
||||||
};
|
};
|
||||||
|
|
||||||
Zotero.DataObject.prototype._eraseRecoverFromFailure = function(env) {
|
|
||||||
throw new Error("Zotero.DataObject.prototype._eraseRecoverFromFailure is an abstract method");
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generates data object key
|
* Generates data object key
|
||||||
* @return {String} key
|
* @return {String} key
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue