Remove seemingly unused crypto.alert() API in favor of window.alert() that we all know and love. r+sr=jst@mozilla.org

This commit is contained in:
Ben Newman 2009-01-06 15:55:06 -08:00
parent c21dedd075
commit 43ab1e7298
2 changed files with 1 additions and 11 deletions

View File

@ -38,7 +38,7 @@
#include "domstubs.idl"
[scriptable, uuid(d2b675a5-f05b-4172-bac2-24cc39ffd398)]
[scriptable, uuid(12b6d899-2aed-4ea9-8c02-2223ab7ab592)]
interface nsIDOMCrypto : nsISupports
{
readonly attribute DOMString version;
@ -52,7 +52,6 @@ interface nsIDOMCrypto : nsISupports
DOMString random(in long numBytes);
DOMString signText(in DOMString stringToSign,
in DOMString caOption /* ... */);
void alert(in DOMString message);
void logout();
void disableRightClick();
};

View File

@ -2860,15 +2860,6 @@ nsCrypto::SignText(const nsAString& aStringToSign, const nsAString& aCaOption,
return NS_OK;
}
NS_IMETHODIMP
nsCrypto::Alert(const nsAString& aMessage)
{
PRUnichar *message = ToNewUnicode(aMessage);
alertUser(message);
nsMemory::Free(message);
return NS_OK;
}
//Logout out of all installed PKCS11 tokens.
NS_IMETHODIMP
nsCrypto::Logout()