Bug 1471743 - remove STRICT_FAKE_SYMLINKS code from nsLocalFileWin; r=erahm
authorNathan Froyd <froydnj@mozilla.com>
Tue, 21 Aug 2018 17:00:59 -0400
changeset 487791 4cd236eff0af42029e5ff209e46c9384aa2c9c3c
parent 487790 9f92f288b60876c75fddfddb2eba8ff685ed2b78
child 487792 3446e763cf522ae6165a9e693b301a04dc904764
push id9719
push userffxbld-merge
push dateFri, 24 Aug 2018 17:49:46 +0000
treeherdermozilla-beta@719ec98fba77 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerserahm
bugs1471743
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1471743 - remove STRICT_FAKE_SYMLINKS code from nsLocalFileWin; r=erahm We don't define STRICT_FAKE_SYMLINKS anywhere, so this is dead code.
xpcom/io/nsLocalFileWin.cpp
--- a/xpcom/io/nsLocalFileWin.cpp
+++ b/xpcom/io/nsLocalFileWin.cpp
@@ -3116,27 +3116,16 @@ nsLocalFile::Contains(nsIFile* aInFile, 
   return NS_OK;
 }
 
 
 NS_IMETHODIMP
 nsLocalFile::GetTarget(nsAString& aResult)
 {
   aResult.Truncate();
-#if STRICT_FAKE_SYMLINKS
-  bool symLink = false;
-  nsresult rv = IsSymlink(&symLink);
-  if (NS_FAILED(rv)) {
-    return rv;
-  }
-
-  if (!symLink) {
-    return NS_ERROR_FILE_INVALID_PATH;
-  }
-#endif
   Resolve();
 
   aResult = mResolvedPath;
   return NS_OK;
 }
 
 
 NS_IMETHODIMP