From 543156c22eee8fe152be3decad8ba1f4ab43f3c8 Mon Sep 17 00:00:00 2001 From: Pawel Andruszkiewicz Date: Thu, 8 Oct 2015 14:38:40 +0200 Subject: [PATCH] [Common] Removed unnecessary code. [Verification] Code compiles, logic was not altered. Change-Id: Idffc67cf7dd4b4563fc7094b1853f1c14634da18 Signed-off-by: Pawel Andruszkiewicz --- src/common/task-queue.cpp | 7 ------- src/common/task-queue.h | 3 --- 2 files changed, 10 deletions(-) diff --git a/src/common/task-queue.cpp b/src/common/task-queue.cpp index 342d5298..2fc305cd 100755 --- a/src/common/task-queue.cpp +++ b/src/common/task-queue.cpp @@ -64,11 +64,4 @@ void TaskQueue::Async(const std::function& work) { g_idle_add(AfterWorkCallback, d); } -//TODO check if it would be needed in future -//void TaskQueue::AsyncResponse(int callback_handle, const std::shared_ptr& response) { -// Async([callback_handle](const std::shared_ptr& response) { -// wrt::common::NativeContext::GetInstance()->InvokeCallback(callback_handle, -// response->serialize()); -// }, response); -//} } // namespace common diff --git a/src/common/task-queue.h b/src/common/task-queue.h index a9d6d472..94df2113 100755 --- a/src/common/task-queue.h +++ b/src/common/task-queue.h @@ -73,9 +73,6 @@ public: */ void Async(const std::function& work); - //TODO not needed now, but maybe in future -// void AsyncResponse(int callback_handle, const std::shared_ptr& response); - private: TaskQueue() {} -- 2.34.1