| Index: runtime/bin/eventhandler.h
|
| diff --git a/runtime/bin/eventhandler.h b/runtime/bin/eventhandler.h
|
| index c4edf0606559a1c24338c0632de6152a3bd0ed68..eb428fd991e084e99a82f952151611b82d825586 100644
|
| --- a/runtime/bin/eventhandler.h
|
| +++ b/runtime/bin/eventhandler.h
|
| @@ -6,7 +6,6 @@
|
| #define BIN_EVENTHANDLER_H_
|
|
|
| #include "bin/builtin.h"
|
| -#include "bin/thread_pool.h"
|
|
|
| // Flags used to provide information and actions to the eventhandler
|
| // when sending a message about a file descriptor. These flags should
|
| @@ -42,28 +41,6 @@ class EventHandler {
|
| delegate_.SendData(id, dart_port, data);
|
| }
|
|
|
| - static void AsyncTaskHandler(ThreadPool::Task args) {
|
| - if (Dart_IsVMFlagSet("trace_thread_pool")) {
|
| - printf("Got async task\n");
|
| - }
|
| - }
|
| -
|
| - static void Initialize() {
|
| - if (Dart_IsVMFlagSet("enable_thread_pool")) {
|
| - ASSERT(thread_pool_ == NULL);
|
| - thread_pool_ = new ThreadPool(&EventHandler::AsyncTaskHandler);
|
| - thread_pool_->Start();
|
| - }
|
| - }
|
| -
|
| - static void Terminate() {
|
| - if (Dart_IsVMFlagSet("enable_thread_pool")) {
|
| - if (thread_pool_ != NULL) {
|
| - thread_pool_->Shutdown();
|
| - }
|
| - }
|
| - }
|
| -
|
| static EventHandler* StartEventHandler() {
|
| EventHandler* handler = new EventHandler();
|
| handler->delegate_.StartEventHandler();
|
| @@ -72,7 +49,6 @@ class EventHandler {
|
|
|
| private:
|
| EventHandlerImplementation delegate_;
|
| - static ThreadPool* thread_pool_;
|
| };
|
|
|
|
|
|
|