File tree 2 files changed +1
-5
lines changed 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -723,7 +723,6 @@ PLDHashTable::ShallowSizeOfIncludingThis(MallocSizeOf aMallocSizeOf) const
723
723
724
724
PLDHashTable::Iterator::Iterator (Iterator&& aOther)
725
725
: mTable(aOther.mTable )
726
- , mStart(aOther.mStart )
727
726
, mLimit(aOther.mLimit )
728
727
, mCurrent(aOther.mCurrent )
729
728
, mNexts(aOther.mNexts )
@@ -732,7 +731,6 @@ PLDHashTable::Iterator::Iterator(Iterator&& aOther)
732
731
{
733
732
// No need to change |mChecker| here.
734
733
aOther.mTable = nullptr ;
735
- aOther.mStart = nullptr ;
736
734
aOther.mLimit = nullptr ;
737
735
aOther.mCurrent = nullptr ;
738
736
aOther.mNexts = 0 ;
@@ -742,7 +740,6 @@ PLDHashTable::Iterator::Iterator(Iterator&& aOther)
742
740
743
741
PLDHashTable::Iterator::Iterator (PLDHashTable* aTable)
744
742
: mTable(aTable)
745
- , mStart(mTable ->mEntryStore .Get())
746
743
, mLimit(mTable ->mEntryStore .Get() + mTable->Capacity() * mTable->mEntrySize)
747
744
, mCurrent(mTable ->mEntryStore .Get())
748
745
, mNexts(0 )
@@ -793,7 +790,7 @@ PLDHashTable::Iterator::MoveToNextEntry()
793
790
{
794
791
mCurrent += mTable ->mEntrySize ;
795
792
if (mCurrent == mLimit ) {
796
- mCurrent = mStart ; // Wrap-around. Possible due to Chaos Mode.
793
+ mCurrent = mTable -> mEntryStore . Get () ; // Wrap-around. Possible due to Chaos Mode.
797
794
}
798
795
}
799
796
Original file line number Diff line number Diff line change @@ -485,7 +485,6 @@ class PLDHashTable
485
485
PLDHashTable* mTable ; // Main table pointer.
486
486
487
487
private:
488
- char * mStart ; // The first entry.
489
488
char * mLimit ; // One past the last entry.
490
489
char * mCurrent ; // Pointer to the current entry.
491
490
uint32_t mNexts ; // Number of Next() calls.
You can’t perform that action at this time.
0 commit comments