Bug 1305422 - part 9 - remove {start,end} from ns{Reading,Writing}Iterator; r=erahm
authorNathan Froyd <froydnj@mozilla.com>
Thu, 29 Sep 2016 22:33:57 -0400
changeset 315880 55be43ac96c9037c2245b3cf0b90f59b38364984
parent 315879 8c6e2e1c4f2a897c153fd6be9a2a6cb52ba2d8d6
child 315881 32b8ba9f7a51219440ba512f2a120d0d85e139e5
push id20634
push usercbook@mozilla.com
push dateFri, 30 Sep 2016 10:10:13 +0000
treeherderfx-team@afe79b010d13 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerserahm
bugs1305422
milestone52.0a1
Bug 1305422 - part 9 - remove {start,end} from ns{Reading,Writing}Iterator; r=erahm These methods are now unused thanks to previous patches.
xpcom/string/nsStringIterator.h
--- a/xpcom/string/nsStringIterator.h
+++ b/xpcom/string/nsStringIterator.h
@@ -41,26 +41,16 @@ private:
 
 public:
   nsReadingIterator()
   {
   }
   // nsReadingIterator( const nsReadingIterator<CharT>& );                    // auto-generated copy-constructor OK
   // nsReadingIterator<CharT>& operator=( const nsReadingIterator<CharT>& );  // auto-generated copy-assignment operator OK
 
-  pointer start() const
-  {
-    return mStart;
-  }
-
-  pointer end() const
-  {
-    return mEnd;
-  }
-
   pointer get() const
   {
     return mPosition;
   }
 
   CharT operator*() const
   {
     return *get();
@@ -173,26 +163,16 @@ private:
 
 public:
   nsWritingIterator()
   {
   }
   // nsWritingIterator( const nsWritingIterator<CharT>& );                    // auto-generated copy-constructor OK
   // nsWritingIterator<CharT>& operator=( const nsWritingIterator<CharT>& );  // auto-generated copy-assignment operator OK
 
-  pointer start() const
-  {
-    return mStart;
-  }
-
-  pointer end() const
-  {
-    return mEnd;
-  }
-
   pointer get() const
   {
     return mPosition;
   }
 
   reference operator*() const
   {
     return *get();