[Build] Remove unused variables
...to satisfy JSHint
This commit is contained in:
@@ -74,7 +74,7 @@ define(
|
||||
|
||||
|
||||
// Callback if the HTTP request to Couch fails
|
||||
function handleError(err) {
|
||||
function handleError() {
|
||||
self.state = DISCONNECTED;
|
||||
}
|
||||
|
||||
|
||||
@@ -116,7 +116,7 @@ define(
|
||||
return this.$q.when(this.spaces);
|
||||
};
|
||||
|
||||
CouchPersistenceProvider.prototype.listObjects = function (space) {
|
||||
CouchPersistenceProvider.prototype.listObjects = function () {
|
||||
return this.get("_all_docs").then(bind(getIdsFromAllDocs, this));
|
||||
};
|
||||
|
||||
|
||||
@@ -157,7 +157,7 @@ define(
|
||||
.then(checkUpdate);
|
||||
};
|
||||
|
||||
ElasticPersistenceProvider.prototype.deleteObject = function (space, key, value) {
|
||||
ElasticPersistenceProvider.prototype.deleteObject = function (space, key) {
|
||||
return this.del(key).then(bind(this.checkResponse, this));
|
||||
};
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ define([
|
||||
})
|
||||
.then(function success(succesResponse) {
|
||||
return provider.parseResponse(succesResponse);
|
||||
}, function error(errorResponse) {
|
||||
}, function error() {
|
||||
// Gracefully fail.
|
||||
return {
|
||||
hits: [],
|
||||
|
||||
@@ -79,7 +79,7 @@ define(
|
||||
return this.$q.when(spaceObj[key]);
|
||||
};
|
||||
|
||||
LocalStoragePersistenceProvider.prototype.deleteObject = function (space, key, value) {
|
||||
LocalStoragePersistenceProvider.prototype.deleteObject = function (space, key) {
|
||||
var spaceObj = this.getValue(space);
|
||||
delete spaceObj[key];
|
||||
this.setValue(space, spaceObj);
|
||||
|
||||
Reference in New Issue
Block a user