mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-07 18:04:46 +00:00
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:
parent
47dcac63b7
commit
a01c64a261
@ -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
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user