Removes unused files

This commit is contained in:
Gustavo Maximiliano Cortez 2017-02-20 11:54:39 -03:00
commit e519517167
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
3 changed files with 0 additions and 78 deletions

View file

@ -1,34 +0,0 @@
'use strict';
angular.module('copayApp.services').service('addonManager', function (lodash) {
var addons = [];
this.registerAddon = function (addonSpec) {
addons.push(addonSpec);
};
this.addonMenuItems = function () {
return lodash.map(addons, function (addonSpec) {
return addonSpec.menuItem;
});
};
this.addonViews = function () {
return lodash.map(addons, function (addonSpec) {
return addonSpec.view;
});
};
this.formatPendingTxp = function (txp) {
lodash.each(addons, function (addon) {
if (addon.formatPendingTxp) {
addon.formatPendingTxp(txp);
}
});
};
this.txTemplateUrl = function() {
var addon = lodash.find(addons, 'txTemplateUrl');
return addon ? addon.txTemplateUrl() : null;
}
});

View file

@ -1,7 +0,0 @@
'use strict';
'use strict';
angular.module('copayApp.services')
.factory('addressService', function(storageService, profileService, $log, $timeout, lodash, bwcError, gettextCatalog) {
var root = {};
return root;
});

View file

@ -1,37 +0,0 @@
'use strict';
angular.module('copayApp.services').factory('confirmDialog', function($log, $timeout, profileService, configService, gettextCatalog, platformInfo) {
var root = {};
var acceptMsg = gettextCatalog.getString('Accept');
var cancelMsg = gettextCatalog.getString('Cancel');
var confirmMsg = gettextCatalog.getString('Confirm');
root.show = function(msg, cb) {
if (platformInfo.isCordova) {
navigator.notification.confirm(
msg,
function(buttonIndex) {
if (buttonIndex == 1) {
$timeout(function() {
return cb(true);
}, 1);
} else {
return cb(false);
}
},
confirmMsg, [acceptMsg, cancelMsg]
);
} else if (platformInfo.isChromeApp) {
// No feedback, alert/confirm not supported.
return cb(true);
} else {
return cb(confirm(msg));
}
};
return root;
});