Bug 1559919 - Finish the WorkerHolder cleanup - part 2 - Remove dead code in PerformanceStorageWorker, r=asuth

Differential Revision: https://phabricator.services.mozilla.com/D35221

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andrea Marchesini 2019-07-12 11:15:46 +00:00
Родитель 7afa8dc82b
Коммит 492ae88ae0
1 изменённых файлов: 0 добавлений и 20 удалений

Просмотреть файл

@ -59,26 +59,6 @@ class PerformanceEntryAdder final : public WorkerControlRunnable {
UniquePtr<PerformanceProxyData> mData;
};
class PerformanceStorageWorkerHolder final : public WorkerHolder {
RefPtr<PerformanceStorageWorker> mStorage;
public:
explicit PerformanceStorageWorkerHolder(PerformanceStorageWorker* aStorage)
: WorkerHolder("PerformanceStorageWorkerHolder",
WorkerHolder::AllowIdleShutdownStart),
mStorage(aStorage) {}
bool Notify(WorkerStatus aStatus) override {
if (mStorage) {
RefPtr<PerformanceStorageWorker> storage;
storage.swap(mStorage);
storage->ShutdownOnWorker();
}
return true;
}
};
} // namespace
/* static */