remove the GetCurrentProfileDirFromJS() method from the nsIProfile interface. the only one using it was the sidebar js, but now that uses the fileLocator. r=mscott.
git-svn-id: svn://10.0.0.236/trunk@52183 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
0da4aac936
commit
fc22d0aa61
@ -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);
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user