Bug 1677000 - Remove IsAbsolutePath() from IOUtils.h r=Gijs
authorBarret Rennie <barret@brennie.ca>
Wed, 09 Dec 2020 05:47:24 +0000
changeset 559945 03dee0cdd71a176752b327c21da0dcd3da0a9663
parent 559944 22c49c20fe8352702f5a5329bc14d4becb9d6e9d
child 559946 3b0a152f733f1c83a0b14d318546e21245d31583
push id132359
push userbrennie@mozilla.com
push dateWed, 09 Dec 2020 05:56:04 +0000
treeherderautoland@6cc33208cf32 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs
bugs1677000, 1676942
milestone85.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 1677000 - Remove IsAbsolutePath() from IOUtils.h r=Gijs The implementation was removed in bug 1676942. Differential Revision: https://phabricator.services.mozilla.com/D98997
dom/system/IOUtils.cpp
dom/system/IOUtils.h
--- a/dom/system/IOUtils.cpp
+++ b/dom/system/IOUtils.cpp
@@ -132,22 +132,16 @@ MOZ_MUST_USE inline bool ToJSValue(
     info.mCreationTime.Construct(aInternalFileInfo.mCreationTime.ref());
   }
 
   info.mPermissions.Construct(aInternalFileInfo.mPermissions);
 
   return ToJSValue(aCx, info, aValue);
 }
 
-#ifdef XP_WIN
-constexpr char PathSeparator = u'\\';
-#else
-constexpr char PathSeparator = u'/';
-#endif
-
 // IOUtils implementation
 
 /* static */
 StaticDataMutex<StaticRefPtr<nsISerialEventTarget>>
     IOUtils::sBackgroundEventTarget("sBackgroundEventTarget");
 /* static */
 StaticRefPtr<nsIAsyncShutdownClient> IOUtils::sBarrier;
 /* static */
--- a/dom/system/IOUtils.h
+++ b/dom/system/IOUtils.h
@@ -101,18 +101,16 @@ class IOUtils final {
 
   static already_AddRefed<Promise> SetPermissions(GlobalObject& aGlobal,
                                                   const nsAString& aPath,
                                                   const uint32_t aPermissions);
 
   static already_AddRefed<Promise> Exists(GlobalObject& aGlobal,
                                           const nsAString& aPath);
 
-  static bool IsAbsolutePath(const nsAString& aPath);
-
  private:
   ~IOUtils() = default;
 
   friend class IOUtilsShutdownBlocker;
   struct InternalFileInfo;
   struct InternalWriteAtomicOpts;
   class MozLZ4;