[Build] Remove unused variables

...to satisfy JSHint
This commit is contained in:
Victor Woeltjen
2016-03-04 11:41:48 -08:00
parent bf232d0593
commit a1a7b2b8ce
44 changed files with 55 additions and 109 deletions

View File

@@ -74,7 +74,7 @@ define(
// Callback if the HTTP request to Couch fails
function handleError(err) {
function handleError() {
self.state = DISCONNECTED;
}

View File

@@ -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));
};

View File

@@ -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));
};

View File

@@ -73,7 +73,7 @@ define([
})
.then(function success(succesResponse) {
return provider.parseResponse(succesResponse);
}, function error(errorResponse) {
}, function error() {
// Gracefully fail.
return {
hits: [],

View File

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