Removed unused and deprecated code

Signed-off-by: fnuesse <felix.nuesse@t-online.de>
This commit is contained in:
fnuesse 2018-12-30 13:53:41 +01:00
parent 04e16b8f6b
commit 4d6af87c19
No known key found for this signature in database
GPG key ID: 2089A3431243E819
2 changed files with 2 additions and 18 deletions

View file

@ -356,19 +356,6 @@
$scope.updateExistingListWithCredential(updated_cred);
});
}
$scope.refreshListWithSaved();
};
$scope.refreshListWithSaved = function () {
var current_vault = $rootScope.vaultCache[$scope.active_vault.guid];
var cv_credentials = current_vault.credentials;
for (var i = 0; i < cv_credentials.length; i++) {
if (cv_credentials[i].credential_id === $scope.storedCredential.credential_id) {
cv_credentials[i] = $scope.storedCredential;
}
}
current_vault.credentials=cv_credentials;
$rootScope.vaultCache[$scope.active_vault.guid] = current_vault;
};
$scope.updateExistingListWithCredential = function (credential) {
@ -381,14 +368,13 @@
}
credential.tags_raw = credential.tags;
var found=false;
var credList=$rootScope.vaultCache[$scope.active_vault.guid].credentials;
for (var i = 0; i < credList.length; i++) {
if (credList[i].credential_id === credential.credential_id) {
if (credList[i].credential_id === credential.credential_id) {
$rootScope.vaultCache[$scope.active_vault.guid].credentials[i]=credential;
found=true;
}
}
}
if(!found){

View file

@ -95,8 +95,6 @@
};
$('#iconPicker-CustomIcon').on('change', function(ev) {
console.log("upload");
scope.customIcon = {};
var f = ev.target.files[0];