Skip to content

Commit

Permalink
Bug 1289151 - Remove obsolete nsIWalletService related code. r=jcj
Browse files Browse the repository at this point in the history
It appears the wallet code was not included during the initial 2007 import of
code from CVS to Mercurial, so anything referencing wallet has been dead code
ever since.

MozReview-Commit-ID: BRTd1M0DsT0
  • Loading branch information
Cykesiopka committed Jul 26, 2016
1 parent 0721c5c commit 049e7d7
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions security/manager/pki/resources/content/resetpassword.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,6 @@ function resetPassword()
} catch (e) {
}

var pref = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefService);
if (pref) {
pref = pref.getBranch(null);
try {
if (pref.getBoolPref("wallet.crypto")) {
// data in wallet is encrypted, clear it
var wallet = Components.classes['@mozilla.org/wallet/wallet-service;1'];
if (wallet) {
wallet = wallet.getService(Components.interfaces.nsIWalletService);
wallet.WALLET_DeleteAll();
}
}
} catch (e) {
// wallet.crypto pref is missing
}
}

var bundle = document.getElementById("pippki_bundle");
var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService();
promptService = promptService.QueryInterface(Components.interfaces.nsIPromptService);
Expand Down

0 comments on commit 049e7d7

Please sign in to comment.