Index: runtime/bin/eventhandler.cc |
diff --git a/runtime/bin/eventhandler.cc b/runtime/bin/eventhandler.cc |
index d73ed879693c1df21726584b91505df2e0ebe4ba..7b7cb0d203323a6b76bc3a861cf541be666c45a4 100644 |
--- a/runtime/bin/eventhandler.cc |
+++ b/runtime/bin/eventhandler.cc |
@@ -57,11 +57,9 @@ void TimeoutQueue::UpdateTimeout(Dart_Port port, int64_t timeout) { |
} |
} |
- |
static EventHandler* event_handler = NULL; |
static Monitor* shutdown_monitor = NULL; |
- |
void EventHandler::Start() { |
// Initialize global socket registry. |
ListeningSocketRegistry::Initialize(); |
@@ -72,13 +70,11 @@ void EventHandler::Start() { |
event_handler->delegate_.Start(event_handler); |
} |
- |
void EventHandler::NotifyShutdownDone() { |
MonitorLocker ml(shutdown_monitor); |
ml.Notify(); |
} |
- |
void EventHandler::Stop() { |
if (event_handler == NULL) { |
return; |
@@ -103,7 +99,6 @@ void EventHandler::Stop() { |
ListeningSocketRegistry::Cleanup(); |
} |
- |
EventHandlerImplementation* EventHandler::delegate() { |
if (event_handler == NULL) { |
return NULL; |
@@ -111,12 +106,10 @@ EventHandlerImplementation* EventHandler::delegate() { |
return &event_handler->delegate_; |
} |
- |
void EventHandler::SendFromNative(intptr_t id, Dart_Port port, int64_t data) { |
event_handler->SendData(id, port, data); |
} |
- |
/* |
* Send data to the EventHandler thread to register for a given instance |
* args[0] a ReceivePort args[1] with a notification event args[2]. |
@@ -146,7 +139,6 @@ void FUNCTION_NAME(EventHandler_SendData)(Dart_NativeArguments args) { |
event_handler->SendData(id, dart_port, data); |
} |
- |
void FUNCTION_NAME(EventHandler_TimerMillisecondClock)( |
Dart_NativeArguments args) { |
int64_t now = TimerUtils::GetCurrentMonotonicMillis(); |