Removes old _NextStep code

This commit is contained in:
Gustavo Maximiliano Cortez 2017-03-06 15:46:44 -03:00
commit f78f937c0f
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
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,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');
});
}
};

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