зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1761438 - Remove nsILocalFileWin::GetNativeCanonicalPath. r=xpcom-reviewers,application-update-reviewers,mccr8,nalexander
I removed the last caller. Depends on D142051 Differential Revision: https://phabricator.services.mozilla.com/D142052
This commit is contained in:
Родитель
d96d03d487
Коммит
030cb502bf
|
@ -19,9 +19,6 @@
|
|||
* error are due to not having a profile when running some of the xpcshell
|
||||
* tests. Since most xpcshell tests also log these errors these tests don't
|
||||
* call do_get_profile unless necessary for the test.
|
||||
* The "This method is lossy. Use GetCanonicalPath !" warning on Windows in
|
||||
* nsLocalFileWin.cpp is from the call to GetNSSProfilePath in
|
||||
* nsNSSComponent.cpp due to it using GetNativeCanonicalPath.
|
||||
* "!mMainThread" in nsThreadManager.cpp are due to using timers and it might be
|
||||
* possible to fix some or all of these in the test itself.
|
||||
* "NS_FAILED(rv)" in nsThreadUtils.cpp are due to using timers and it might be
|
||||
|
|
|
@ -46,7 +46,6 @@ interface nsILocalFileWin : nsIFile
|
|||
* support both short and long path forms.
|
||||
*/
|
||||
[noscript] readonly attribute AString canonicalPath;
|
||||
[noscript] readonly attribute ACString nativeCanonicalPath;
|
||||
|
||||
/**
|
||||
* Get or set whether this file is marked read-only.
|
||||
|
|
|
@ -3447,14 +3447,6 @@ nsCString nsIFile::HumanReadablePath() {
|
|||
return NS_ConvertUTF16toUTF8(path);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsLocalFile::GetNativeCanonicalPath(nsACString& aResult) {
|
||||
NS_WARNING("This method is lossy. Use GetCanonicalPath !");
|
||||
EnsureShortPath();
|
||||
NS_CopyUnicodeToNative(mShortWorkingPath, aResult);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsLocalFile::CopyToNative(nsIFile* aNewParentDir, const nsACString& aNewName) {
|
||||
// Check we are correctly initialized.
|
||||
|
|
Загрузка…
Ссылка в новой задаче