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:
Masatoshi Kimura 2022-03-26 00:52:07 +00:00
Родитель d96d03d487
Коммит 030cb502bf
3 изменённых файлов: 0 добавлений и 12 удалений

Просмотреть файл

@ -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.