зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1457501 - Part 2 - Remove unused type DeleteWithLock r=gsvelto
MozReview-Commit-ID: 9OU5YfRf45o --HG-- extra : rebase_source : a4b175ebc318a59b403b1db77c9273c963ee43a5
This commit is contained in:
Родитель
b3a6041c35
Коммит
5ce132da33
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче