Bug 1429904 - Remove unused operator< from StackKey and FrameKey. r?njn
nsGenericHashKey never calls this operator, as far as I can tell.
MozReview-Commit-ID: NDybMI8DOA
--- a/tools/profiler/core/ProfileBufferEntry.h
+++ b/tools/profiler/core/ProfileBufferEntry.h
@@ -198,19 +198,16 @@ public:
: mJITAddress(mozilla::Some(aJITAddress))
, mJITDepth(mozilla::Some(aJITDepth))
{
mHash = Hash();
}
uint32_t Hash() const;
bool operator==(const FrameKey& aOther) const;
- bool operator<(const FrameKey& aOther) const {
- return mHash < aOther.mHash;
- }
private:
uint32_t mHash;
};
struct StackKey {
mozilla::Maybe<uint32_t> mPrefixStackIndex;
uint32_t mFrameIndex;
@@ -228,20 +225,16 @@ public:
uint32_t Hash() const { return mHash; }
bool operator==(const StackKey& aOther) const
{
return mPrefixStackIndex == aOther.mPrefixStackIndex &&
mFrameIndex == aOther.mFrameIndex;
}
- bool operator<(const StackKey& aOther) const
- {
- return mHash < aOther.mHash;
- }
private:
uint32_t mHash;
};
explicit UniqueStacks();
// Needs to be called when using a UniqueStacks object again after having