зеркало из https://github.com/mozilla/gecko-dev.git
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.
This commit is contained in:
Родитель
ecf3e52547
Коммит
7a72b30bde
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче