Bug 1496295 - Remove some more unused methods r=emilio
authorCameron McCormack <cam@mcc.id.au>
Thu, 04 Oct 2018 07:51:17 +0000
changeset 498861 8d795e0fa2851bcb88d886ad5197aee8bffb22f6
parent 498860 f6e5bc9af12f1decb7092762aef1e9cd1a768dd6
child 498862 7bfe1c7c5d89664f6d004e94fc1ed42c43ec22f8
push id1864
push userffxbld-merge
push dateMon, 03 Dec 2018 15:51:40 +0000
treeherdermozilla-release@f040763d99ad [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersemilio
bugs1496295
milestone64.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 1496295 - Remove some more unused methods r=emilio Differential Revision: https://phabricator.services.mozilla.com/D7678
layout/style/nsCSSValue.cpp
layout/style/nsCSSValue.h
--- a/layout/style/nsCSSValue.cpp
+++ b/layout/style/nsCSSValue.cpp
@@ -1036,29 +1036,16 @@ css::URLValue::GetSourceString(nsString&
     if (NS_FAILED(rv)) {
       cref.Truncate();
     }
   }
 
   aRef = NS_ConvertUTF8toUTF16(cref);
 }
 
-bool
-css::URLValue::EqualsExceptRef(nsIURI* aURI) const
-{
-  nsIURI* uri = GetURI();
-  if (!uri) {
-    return false;
-  }
-
-  bool ret = false;
-  uri->EqualsExceptRef(aURI, &ret);
-  return ret;
-}
-
 size_t
 css::URLValue::SizeOfIncludingThis(mozilla::MallocSizeOf aMallocSizeOf) const
 {
   // Measurement of the following members may be added later if DMD finds it
   // is worthwhile:
   // - mURI
   // - mString
   // - mExtraData
--- a/layout/style/nsCSSValue.h
+++ b/layout/style/nsCSSValue.h
@@ -143,23 +143,16 @@ public:
   // Otherwise, ignore aURL and return mURL directly.
   already_AddRefed<nsIURI> ResolveLocalRef(nsIURI* aURI) const;
   already_AddRefed<nsIURI> ResolveLocalRef(nsIContent* aContent) const;
 
   // Serializes mURI as a computed URI value, taking into account mIsLocalRef
   // and serializing just the fragment if true.
   void GetSourceString(nsString& aRef) const;
 
-  bool EqualsExceptRef(nsIURI* aURI) const;
-
-  bool IsStringEmpty() const
-  {
-    return GetString().IsEmpty();
-  }
-
   nsDependentCSubstring GetString() const;
 
   size_t SizeOfIncludingThis(mozilla::MallocSizeOf aMallocSizeOf) const;
 
   imgRequestProxy* LoadImage(nsIDocument* aDocument);
 
   uint64_t LoadID() const { return mLoadID; }