| Index: Source/modules/filesystem/DOMFileSystem.h
|
| diff --git a/Source/modules/filesystem/DOMFileSystem.h b/Source/modules/filesystem/DOMFileSystem.h
|
| index 8cbd582c8e140ee79090c3b9d7cf605daaf2de31..798737cc11eb27b5b7bc05a4f6e281955d776566 100644
|
| --- a/Source/modules/filesystem/DOMFileSystem.h
|
| +++ b/Source/modules/filesystem/DOMFileSystem.h
|
| @@ -73,9 +73,6 @@ public:
|
| // Schedule a callback. This should not cross threads (should be called on the same context thread).
|
| // FIXME: move this to a more generic place.
|
| template <typename CB, typename CBArg>
|
| - static void scheduleCallback(ExecutionContext*, CB*, PassRefPtrWillBeRawPtr<CBArg>);
|
| -
|
| - template <typename CB, typename CBArg>
|
| static void scheduleCallback(ExecutionContext*, CB*, CBArg*);
|
|
|
| template <typename CB, typename CBArg>
|
| @@ -91,12 +88,6 @@ public:
|
| static void scheduleCallback(ExecutionContext*, CB*);
|
|
|
| template <typename CB, typename CBArg>
|
| - void scheduleCallback(CB* callback, PassRefPtrWillBeRawPtr<CBArg> callbackArg)
|
| - {
|
| - scheduleCallback(executionContext(), callback, callbackArg);
|
| - }
|
| -
|
| - template <typename CB, typename CBArg>
|
| void scheduleCallback(CB* callback, CBArg* callbackArg)
|
| {
|
| scheduleCallback(executionContext(), callback, callbackArg);
|
| @@ -121,26 +112,6 @@ private:
|
| }
|
| };
|
|
|
| - // A helper template to schedule a callback task.
|
| - template <typename CB, typename CBArg>
|
| - class DispatchCallbackRefPtrArgTask final : public DispatchCallbackTaskBase {
|
| - public:
|
| - DispatchCallbackRefPtrArgTask(CB* callback, PassRefPtrWillBeRawPtr<CBArg> arg)
|
| - : m_callback(callback)
|
| - , m_callbackArg(arg)
|
| - {
|
| - }
|
| -
|
| - virtual void performTask(ExecutionContext*) override
|
| - {
|
| - m_callback->handleEvent(m_callbackArg.get());
|
| - }
|
| -
|
| - private:
|
| - Persistent<CB> m_callback;
|
| - RefPtrWillBePersistent<CBArg> m_callbackArg;
|
| - };
|
| -
|
| template <typename CB, typename CBArg>
|
| class DispatchCallbackPtrArgTask final : public DispatchCallbackTaskBase {
|
| public:
|
| @@ -201,14 +172,6 @@ private:
|
| };
|
|
|
| template <typename CB, typename CBArg>
|
| -void DOMFileSystem::scheduleCallback(ExecutionContext* executionContext, CB* callback, PassRefPtrWillBeRawPtr<CBArg> arg)
|
| -{
|
| - ASSERT(executionContext->isContextThread());
|
| - if (callback)
|
| - executionContext->postTask(FROM_HERE, adoptPtr(new DispatchCallbackRefPtrArgTask<CB, CBArg>(callback, arg)));
|
| -}
|
| -
|
| -template <typename CB, typename CBArg>
|
| void DOMFileSystem::scheduleCallback(ExecutionContext* executionContext, CB* callback, CBArg* arg)
|
| {
|
| ASSERT(executionContext->isContextThread());
|
|
|