diff --git a/mozglue/baseprofiler/core/ProfileBuffer.cpp b/mozglue/baseprofiler/core/ProfileBuffer.cpp index c7a0ca217ec1..7c1c56db3c90 100644 --- a/mozglue/baseprofiler/core/ProfileBuffer.cpp +++ b/mozglue/baseprofiler/core/ProfileBuffer.cpp @@ -19,13 +19,6 @@ ProfileBuffer::ProfileBuffer(ProfileChunkedBuffer& aBuffer) MOZ_ASSERT(mEntries.IsInSession()); } -ProfileBuffer::~ProfileBuffer() { - // Only ProfileBuffer controls this buffer, and it should be empty when there - // is no ProfileBuffer using it. - mEntries.ResetChunkManager(); - MOZ_ASSERT(!mEntries.IsInSession()); -} - /* static */ ProfileBufferBlockIndex ProfileBuffer::AddEntry( ProfileChunkedBuffer& aProfileChunkedBuffer, diff --git a/mozglue/baseprofiler/core/ProfileBuffer.h b/mozglue/baseprofiler/core/ProfileBuffer.h index a32cc5c5a5b8..82b3a543e48c 100644 --- a/mozglue/baseprofiler/core/ProfileBuffer.h +++ b/mozglue/baseprofiler/core/ProfileBuffer.h @@ -27,8 +27,6 @@ class ProfileBuffer final { // manager. explicit ProfileBuffer(ProfileChunkedBuffer& aBuffer); - ~ProfileBuffer(); - bool IsThreadSafe() const { return mEntries.IsThreadSafe(); } // Add |aEntry| to the buffer, ignoring what kind of entry it is. diff --git a/tools/profiler/core/ProfileBuffer.cpp b/tools/profiler/core/ProfileBuffer.cpp index 853685881a3f..65e3335b1efe 100644 --- a/tools/profiler/core/ProfileBuffer.cpp +++ b/tools/profiler/core/ProfileBuffer.cpp @@ -21,13 +21,6 @@ ProfileBuffer::ProfileBuffer(ProfileChunkedBuffer& aBuffer) MOZ_ASSERT(mEntries.IsInSession()); } -ProfileBuffer::~ProfileBuffer() { - // Only ProfileBuffer controls this buffer, and it should be empty when there - // is no ProfileBuffer using it. - mEntries.ResetChunkManager(); - MOZ_ASSERT(!mEntries.IsInSession()); -} - /* static */ ProfileBufferBlockIndex ProfileBuffer::AddEntry( ProfileChunkedBuffer& aProfileChunkedBuffer, diff --git a/tools/profiler/core/ProfileBuffer.h b/tools/profiler/core/ProfileBuffer.h index 747abe766b41..12ed1a4e5602 100644 --- a/tools/profiler/core/ProfileBuffer.h +++ b/tools/profiler/core/ProfileBuffer.h @@ -25,8 +25,6 @@ class ProfileBuffer final { // manager. explicit ProfileBuffer(mozilla::ProfileChunkedBuffer& aBuffer); - ~ProfileBuffer(); - bool IsThreadSafe() const { return mEntries.IsThreadSafe(); } // Add |aEntry| to the buffer, ignoring what kind of entry it is.