remove unused function
This commit is contained in:
10
src/appdb.js
10
src/appdb.js
@@ -16,7 +16,6 @@ exports = module.exports = {
|
|||||||
|
|
||||||
setHealth,
|
setHealth,
|
||||||
setTask,
|
setTask,
|
||||||
getAppStoreIds,
|
|
||||||
|
|
||||||
// subdomain table types
|
// subdomain table types
|
||||||
SUBDOMAIN_TYPE_PRIMARY: 'primary',
|
SUBDOMAIN_TYPE_PRIMARY: 'primary',
|
||||||
@@ -479,12 +478,3 @@ function setTask(appId, values, options, callback) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getAppStoreIds(callback) {
|
|
||||||
assert.strictEqual(typeof callback, 'function');
|
|
||||||
|
|
||||||
database.query('SELECT id, appStoreId FROM apps', function (error, results) {
|
|
||||||
if (error) return callback(new BoxError(BoxError.DATABASE_ERROR, error));
|
|
||||||
|
|
||||||
callback(null, results);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -261,17 +261,6 @@ describe('database', function () {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it('getAppStoreIds succeeds', function (done) {
|
|
||||||
appdb.getAppStoreIds(function (error, results) {
|
|
||||||
expect(error).to.be(null);
|
|
||||||
expect(results).to.be.an(Array);
|
|
||||||
expect(results.length).to.be(2);
|
|
||||||
expect(results[0].appStoreId).to.equal(APP_0.appStoreId);
|
|
||||||
expect(results[1].appStoreId).to.equal(APP_1.appStoreId);
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
it('delete succeeds', function (done) {
|
it('delete succeeds', function (done) {
|
||||||
appdb.del(APP_0.id, function (error) {
|
appdb.del(APP_0.id, function (error) {
|
||||||
expect(error).to.be(null);
|
expect(error).to.be(null);
|
||||||
|
|||||||
Reference in New Issue
Block a user