Merge pull request #5724 from cmgustavo/ref/clean-code-01

Removes old _NextStep code
This commit is contained in:
Javier Donadío 2017-03-06 21:44:49 +02:00 committed by GitHub
commit bbd20482be
2 changed files with 1 additions and 17 deletions

View File

@ -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,10 +81,8 @@ angular.module('copayApp.controllers').controller('bitpayCardIntroController', f
popupService.showAlert(gettextCatalog.getString('Error'), err);
return;
}
storageService.setNextStep('BitpayCard', 'true', function(err) {
$state.go('tabs.home');
});
});
}
};

View File

@ -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)
};