mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 1457501 - Part 2 - Remove unused type DeleteWithLock r=gsvelto
MozReview-Commit-ID: 9OU5YfRf45o --HG-- extra : rebase_source : 0cc8a3b6c9fa940d1b69703ff85c6cd803c20b0d
This commit is contained in:
parent
f1616d626a
commit
9d9760f391
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user