Bug 1119956 remove unused ErrorRunnable r=baku

Unused since
https://hg.mozilla.org/mozilla-central/rev/d7b3c828ed45ce0fc47ebdcc12bb55ce9344ebae#l1.53

Differential Revision: https://phabricator.services.mozilla.com/D98115
This commit is contained in:
Karl Tomlinson 2020-11-30 09:22:36 +00:00
parent 47dcac63b7
commit a01c64a261

View File

@ -70,29 +70,6 @@ nsresult DispatchToIOThread(nsIRunnable* aRunnable) {
return target->Dispatch(aRunnable, NS_DISPATCH_NORMAL);
}
// This runnable is used when an error value is set before doing any real
// operation on the I/O thread. In this case we skip all and we directly
// communicate the error.
class ErrorRunnable final : public CancelableRunnable {
public:
explicit ErrorRunnable(FileSystemTaskChildBase* aTask)
: CancelableRunnable("ErrorRunnable"), mTask(aTask) {
MOZ_ASSERT(aTask);
}
NS_IMETHOD
Run() override {
MOZ_ASSERT(NS_IsMainThread());
MOZ_ASSERT(mTask->HasError());
mTask->HandlerCallback();
return NS_OK;
}
private:
RefPtr<FileSystemTaskChildBase> mTask;
};
} // anonymous namespace
/**