Remove dead code
getNonApprovedCode code flow is ununsed (and broken by design on the appstore side).
This commit is contained in:
@@ -697,13 +697,6 @@ angular.module('Application').service('Client', ['$http', 'md5', 'Notification',
|
||||
}).error(defaultErrorHandler(callback));
|
||||
};
|
||||
|
||||
Client.prototype.getNonApprovedApps = function (callback) {
|
||||
get('/api/v1/developer/apps').success(function (data, status) {
|
||||
if (status !== 200 || typeof data !== 'object') return callback(new ClientError(status, data));
|
||||
callback(null, data.apps || []);
|
||||
}).error(defaultErrorHandler(callback));
|
||||
};
|
||||
|
||||
Client.prototype.getApp = function (appId, callback) {
|
||||
var appFound = null;
|
||||
this._installedApps.some(function (app) {
|
||||
|
||||
@@ -353,18 +353,6 @@ angular.module('Application').controller('AppStoreController', ['$scope', '$loca
|
||||
});
|
||||
|
||||
return callback(null, apps);
|
||||
|
||||
// Client.getNonApprovedApps(function (error, result) {
|
||||
// if (error) return callback(error);
|
||||
|
||||
// // add testing tag to the manifest for UI and search reasons
|
||||
// result.forEach(function (app) {
|
||||
// if (!app.manifest.tags) app.manifest.tags = [];
|
||||
// app.manifest.tags.push('testing');
|
||||
// });
|
||||
|
||||
// callback(null, apps.concat(result));
|
||||
// });
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user