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

Unified Diff: sky/engine/wtf/MainThread.cpp

Issue 684813003: Remove wtf/Functional.h (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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 | « sky/engine/wtf/MainThread.h ('k') | sky/viewer/platform/platform_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/wtf/MainThread.cpp
diff --git a/sky/engine/wtf/MainThread.cpp b/sky/engine/wtf/MainThread.cpp
index 83a14aefb290aed59263a3af01fd5e6466dad94f..124e0ba36b578cfea2c12b1440af3f9f02679c30 100644
--- a/sky/engine/wtf/MainThread.cpp
+++ b/sky/engine/wtf/MainThread.cpp
@@ -32,7 +32,6 @@
#include "wtf/MainThread.h"
#include "wtf/Assertions.h"
-#include "wtf/Functional.h"
#include "wtf/Threading.h"
#include "wtf/text/AtomicString.h"
@@ -59,18 +58,6 @@ void callOnMainThread(MainThreadFunction* function, void* context)
(*callOnMainThreadFunction)(function, context);
}
-static void callFunctionObject(void* context)
-{
- Function<void()>* function = static_cast<Function<void()>*>(context);
- (*function)();
- delete function;
-}
-
-void callOnMainThread(const Function<void()>& function)
-{
- callOnMainThread(callFunctionObject, new Function<void()>(function));
-}
-
bool isMainThread()
{
return currentThread() == mainThreadIdentifier;
« no previous file with comments | « sky/engine/wtf/MainThread.h ('k') | sky/viewer/platform/platform_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698