From 16a1923c3bc1f677bf1e00d9fd6a9a66f7e70d77 Mon Sep 17 00:00:00 2001 From: roytam1 Date: Thu, 13 Apr 2023 16:43:07 +0800 Subject: [PATCH] Bug 1159003 - Remove Performance::GetAsISupports(), r=bz --- dom/performance/Performance.cpp | 2 +- dom/performance/Performance.h | 2 -- dom/performance/PerformanceMainThread.h | 5 ----- dom/performance/PerformanceWorker.h | 5 ----- 4 files changed, 1 insertion(+), 13 deletions(-) diff --git a/dom/performance/Performance.cpp b/dom/performance/Performance.cpp index 73cb38f921..09c38fef42 100755 --- a/dom/performance/Performance.cpp +++ b/dom/performance/Performance.cpp @@ -542,7 +542,7 @@ Performance::Measure(JSContext* aCx, } RefPtr performanceMeasure = new PerformanceMeasure( - GetAsISupports(), aName, startTime, endTime, detail); + GetParentObject(), aName, startTime, endTime, detail); InsertUserEntry(performanceMeasure); return performanceMeasure.forget(); diff --git a/dom/performance/Performance.h b/dom/performance/Performance.h index 9966348b8b..6815459dbc 100644 --- a/dom/performance/Performance.h +++ b/dom/performance/Performance.h @@ -138,8 +138,6 @@ protected: void ClearUserEntries(const Optional& aEntryName, const nsAString& aEntryType); - virtual nsISupports* GetAsISupports() = 0; - virtual void DispatchBufferFullEvent() = 0; virtual TimeStamp CreationTimeStamp() const = 0; diff --git a/dom/performance/PerformanceMainThread.h b/dom/performance/PerformanceMainThread.h index 702483e9de..735522c502 100644 --- a/dom/performance/PerformanceMainThread.h +++ b/dom/performance/PerformanceMainThread.h @@ -65,11 +65,6 @@ public: protected: ~PerformanceMainThread(); - nsISupports* GetAsISupports() override - { - return this; - } - void InsertUserEntry(PerformanceEntry* aEntry) override; DOMHighResTimeStamp diff --git a/dom/performance/PerformanceWorker.h b/dom/performance/PerformanceWorker.h index 3604e6874f..8dcbf1f202 100644 --- a/dom/performance/PerformanceWorker.h +++ b/dom/performance/PerformanceWorker.h @@ -65,11 +65,6 @@ public: protected: ~PerformanceWorker(); - nsISupports* GetAsISupports() override - { - return nullptr; - } - void InsertUserEntry(PerformanceEntry* aEntry) override; void DispatchBufferFullEvent() override