mirror of https://github.com/BTCPrivate/copay.git
Merge pull request #5724 from cmgustavo/ref/clean-code-01
Removes old _NextStep code
This commit is contained in:
commit
bbd20482be
|
@ -20,8 +20,6 @@ angular.module('copayApp.controllers').controller('bitpayCardIntroController', f
|
|||
popupService.showAlert(gettextCatalog.getString('Error updating Debit Cards'), err);
|
||||
return;
|
||||
}
|
||||
// Set flag for nextStep
|
||||
storageService.setNextStep('BitpayCard', 'true', function(err) {});
|
||||
$ionicHistory.nextViewOptions({
|
||||
disableAnimate: true
|
||||
});
|
||||
|
@ -83,9 +81,7 @@ angular.module('copayApp.controllers').controller('bitpayCardIntroController', f
|
|||
popupService.showAlert(gettextCatalog.getString('Error'), err);
|
||||
return;
|
||||
}
|
||||
storageService.setNextStep('BitpayCard', 'true', function(err) {
|
||||
$state.go('tabs.home');
|
||||
});
|
||||
$state.go('tabs.home');
|
||||
});
|
||||
}
|
||||
};
|
||||
|
|
|
@ -324,18 +324,6 @@ angular.module('copayApp.services')
|
|||
storage.remove('addressbook-' + network, cb);
|
||||
};
|
||||
|
||||
root.setNextStep = function(service, status, cb) {
|
||||
storage.set('nextStep-' + service, status, cb);
|
||||
};
|
||||
|
||||
root.getNextStep = function(service, cb) {
|
||||
storage.get('nextStep-' + service, cb);
|
||||
};
|
||||
|
||||
root.removeNextStep = function(service, cb) {
|
||||
storage.remove('nextStep-' + service, cb);
|
||||
};
|
||||
|
||||
root.setLastCurrencyUsed = function(lastCurrencyUsed, cb) {
|
||||
storage.set('lastCurrencyUsed', lastCurrencyUsed, cb)
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue