diff --git a/profile/public/nsIProfile.idl b/profile/public/nsIProfile.idl index 658f0e26bc9f..a6d093271759 100644 --- a/profile/public/nsIProfile.idl +++ b/profile/public/nsIProfile.idl @@ -54,7 +54,6 @@ interface nsIProfile : nsISupports { // eventually we need to depricate getCurrentProfileDir [noscript] void getCurrentProfileDir(in nsFileSpec profileDir); - nsIFileSpec getCurrentProfileDirFromJS(); [noscript] void setProfileDir(in string profileName, in nsFileSpecRef profileDir); diff --git a/profile/src/nsProfile.cpp b/profile/src/nsProfile.cpp index 13fffa04915a..4d200bc02701 100644 --- a/profile/src/nsProfile.cpp +++ b/profile/src/nsProfile.cpp @@ -846,19 +846,6 @@ NS_IMETHODIMP nsProfile::GetFirstProfile(char **profileName) } -NS_IMETHODIMP -nsProfile::GetCurrentProfileDirFromJS(nsIFileSpec **spec) -{ - nsresult rv; - nsFileSpec dir; - - rv = GetCurrentProfileDir(&dir); - if (NS_FAILED(rv)) return rv; - - rv = NS_NewFileSpecWithSpec(dir, spec); - return rv; -} - // Returns the name of the current profile i.e., the last used profile NS_IMETHODIMP nsProfile::GetCurrentProfile(char **profileName)