Bug 1298018 - Part 2: Remove some unused methods. r=jonco
authorPaul Bone <pbone@mozilla.com>
Mon, 16 Oct 2017 21:29:07 +1100
changeset 443520 7434bbd4eee44b52e7bc43926c8444400391ee9c
parent 443519 7baa6f43d16abac72422c725453650c520b4c395
child 443521 bf065ffab5f7649ec7724ad226e97a853715497a
push id1618
push userCallek@gmail.com
push dateThu, 11 Jan 2018 17:45:48 +0000
treeherdermozilla-release@882ca853e05a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjonco
bugs1298018
milestone58.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 1298018 - Part 2: Remove some unused methods. r=jonco
js/src/gc/Nursery.h
--- a/js/src/gc/Nursery.h
+++ b/js/src/gc/Nursery.h
@@ -140,17 +140,16 @@ class Nursery
     ~Nursery();
 
     MOZ_MUST_USE bool init(uint32_t maxNurseryBytes, AutoLockGCBgAlloc& lock);
 
     unsigned maxChunks() const { return maxNurseryChunks_; }
     unsigned numChunks() const { return chunks_.length(); }
 
     bool exists() const { return maxChunks() != 0; }
-    size_t nurserySize() const { return maxChunks() << ChunkShift; }
 
     void enable();
     void disable();
     bool isEnabled() const { return numChunks() != 0; }
 
     /* Return true if no allocations have been made since the last collection. */
     bool isEmpty() const;
 
@@ -414,18 +413,16 @@ class Nursery
     using NativeObjectVector = Vector<NativeObject*, 0, SystemAllocPolicy>;
     NativeObjectVector dictionaryModeObjects_;
 
 #ifdef JS_GC_ZEAL
     struct Canary;
     Canary* lastCanary_;
 #endif
 
-    NurseryChunk* allocChunk();
-
     NurseryChunk& chunk(unsigned index) const {
         return *chunks_[index];
     }
 
     void setCurrentChunk(unsigned chunkno);
     void setStartPosition();
 
     void updateNumChunks(unsigned newCount);