Bug 1367209 part 2 - Remove a useless constructor. r=jfkthame
authorMats Palmgren <mats@mozilla.com>
Sun, 04 Jun 2017 16:45:15 +0200
changeset 410357 fbfa99d9a737838a1b0811b46d3656643f71dbf4
parent 410356 1005b7702f1e6ba7679d73365407aa20fe10e08c
child 410358 1b9d1468f7b4c1eb9b40fb19137f252bb113aff4
push id7391
push usermtabara@mozilla.com
push dateMon, 12 Jun 2017 13:08:53 +0000
treeherdermozilla-beta@2191d7f87e2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjfkthame
bugs1367209
milestone55.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 1367209 part 2 - Remove a useless constructor. r=jfkthame MozReview-Commit-ID: 9GVI3kSJiuJ
layout/base/nsCounterManager.cpp
layout/base/nsCounterManager.h
--- a/layout/base/nsCounterManager.cpp
+++ b/layout/base/nsCounterManager.cpp
@@ -177,21 +177,16 @@ nsCounterList::RecalcAll()
         nsAutoString text;
         useNode->GetText(text);
         useNode->mText->SetData(text);
       }
     }
   }
 }
 
-nsCounterManager::nsCounterManager()
-    : mNames()
-{
-}
-
 bool
 nsCounterManager::AddCounterResetsAndIncrements(nsIFrame* aFrame)
 {
   const nsStyleContent* styleContent = aFrame->StyleContent();
   if (!styleContent->CounterIncrementCount() &&
       !styleContent->CounterResetCount()) {
     return false;
   }
--- a/layout/base/nsCounterManager.h
+++ b/layout/base/nsCounterManager.h
@@ -202,17 +202,16 @@ private:
 };
 
 /**
  * The counter manager maintains an |nsCounterList| for each named
  * counter to keep track of all scopes with that name.
  */
 class nsCounterManager {
 public:
-    nsCounterManager();
     // Returns true if dirty
     bool AddCounterResetsAndIncrements(nsIFrame *aFrame);
 
     // Gets the appropriate counter list, creating it if necessary.
     // Guaranteed to return non-null. (Uses an infallible hashtable API.)
     nsCounterList* CounterListFor(const nsSubstring& aCounterName);
 
     // Clean up data in any dirty counter lists.