Bug 1457501 - Part 2 - Remove unused type DeleteWithLock r=gsvelto

MozReview-Commit-ID: 9OU5YfRf45o

--HG--
extra : rebase_source : 0cc8a3b6c9fa940d1b69703ff85c6cd803c20b0d
This commit is contained in:
Haik Aftandilian 2018-04-26 16:58:42 -07:00
parent f1616d626a
commit 9d9760f391

View File

@ -199,21 +199,6 @@ private:
nsTArray<ThreadAnnotationSpan*> mDataSpans;
};
template<typename T>
class DeleteWithLock
{
public:
constexpr DeleteWithLock() {}
void operator()(T* aPtr) const
{
static_assert(sizeof(T) > 0, "T must be complete");
CrashReporterAutoLock lock(sMutex);
delete aPtr;
}
};
static bool sInitialized = false;
static UniquePtr<ThreadAnnotationData> sThreadAnnotations;