Title: [102737] trunk/Source/_javascript_Core
Revision
102737
Author
ander...@apple.com
Date
2011-12-13 21:15:51 -0800 (Tue, 13 Dec 2011)

Log Message

Try to fix the Windows build.

Remove the callOnMainThread overload that takes a WTF::Function since it's not being used.

* wtf/MainThread.cpp:
* wtf/MainThread.h:

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (102736 => 102737)


--- trunk/Source/_javascript_Core/ChangeLog	2011-12-14 05:13:07 UTC (rev 102736)
+++ trunk/Source/_javascript_Core/ChangeLog	2011-12-14 05:15:51 UTC (rev 102737)
@@ -1,5 +1,14 @@
 2011-12-13  Anders Carlsson  <ander...@apple.com>
 
+        Try to fix the Windows build.
+
+        Remove the callOnMainThread overload that takes a WTF::Function since it's not being used.
+
+        * wtf/MainThread.cpp:
+        * wtf/MainThread.h:
+
+2011-12-13  Anders Carlsson  <ander...@apple.com>
+
         Add a very bare-bones implementation of bind and Function to WTF
         https://bugs.webkit.org/show_bug.cgi?id=74462
 

Modified: trunk/Source/_javascript_Core/wtf/MainThread.cpp (102736 => 102737)


--- trunk/Source/_javascript_Core/wtf/MainThread.cpp	2011-12-14 05:13:07 UTC (rev 102736)
+++ trunk/Source/_javascript_Core/wtf/MainThread.cpp	2011-12-14 05:15:51 UTC (rev 102737)
@@ -217,18 +217,6 @@
     }
 }
 
-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));
-}
-
 void setMainThreadCallbacksPaused(bool paused)
 {
     ASSERT(isMainThread());

Modified: trunk/Source/_javascript_Core/wtf/MainThread.h (102736 => 102737)


--- trunk/Source/_javascript_Core/wtf/MainThread.h	2011-12-14 05:13:07 UTC (rev 102736)
+++ trunk/Source/_javascript_Core/wtf/MainThread.h	2011-12-14 05:15:51 UTC (rev 102737)
@@ -46,9 +46,6 @@
 void callOnMainThreadAndWait(MainThreadFunction*, void* context);
 void cancelCallOnMainThread(MainThreadFunction*, void* context);
 
-template<typename> class Function;
-void callOnMainThread(const Function<void ()>&);
-    
 void setMainThreadCallbacksPaused(bool paused);
 
 bool isMainThread();
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to