diff --git a/src/js/services/addonManager.js b/src/js/services/addonManager.js deleted file mode 100644 index ce1f85d49..000000000 --- a/src/js/services/addonManager.js +++ /dev/null @@ -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; - } -}); diff --git a/src/js/services/addressService.js b/src/js/services/addressService.js deleted file mode 100644 index 6df0a71a0..000000000 --- a/src/js/services/addressService.js +++ /dev/null @@ -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; - }); diff --git a/src/js/services/confirmDialog.js b/src/js/services/confirmDialog.js deleted file mode 100644 index 90e71f381..000000000 --- a/src/js/services/confirmDialog.js +++ /dev/null @@ -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; -}); -