Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(515)

Unified Diff: runtime/bin/eventhandler.cc

Issue 2974233002: VM: Re-format to use at most one newline between functions (Closed)
Patch Set: Rebase and merge Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/eventhandler.h ('k') | runtime/bin/eventhandler_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « runtime/bin/eventhandler.h ('k') | runtime/bin/eventhandler_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698