[GLIB] Remove delete on destroy GMainLoopSources
authorcarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 2 Nov 2015 09:15:39 +0000 (09:15 +0000)
committercarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 2 Nov 2015 09:15:39 +0000 (09:15 +0000)
commit66ef7aeb93ca85d77f2c61ea768cc8dfd45dcd2d
tree87a5dba78e1d343dbd40d89d5701e408f5bec5fc
parent67584c0d52c197619b7cf0656b66741f6a0c1f68
[GLIB] Remove delete on destroy GMainLoopSources
https://bugs.webkit.org/show_bug.cgi?id=150771

Reviewed by Žan Doberšek.

Source/WTF:

Delete on destroy sources made the GMainLoopSource implementation
more complex and they are currently unused.

* wtf/glib/GMainLoopSource.cpp:
(WTF::GMainLoopSource::boolCallback):
(WTF::GMainLoopSource::create): Deleted.
(WTF::GMainLoopSource::GMainLoopSource): Deleted.
(WTF::GMainLoopSource::cancel): Deleted.
(WTF::GMainLoopSource::scheduleAndDeleteOnDestroy): Deleted.
(WTF::GMainLoopSource::scheduleAfterDelayAndDeleteOnDestroy): Deleted.
(WTF::GMainLoopSource::voidCallback): Deleted.
* wtf/glib/GMainLoopSource.h:

Tools:

* TestWebKitAPI/Tests/WTF/glib/GMainLoopSource.cpp:
(TestWebKitAPI::TEST): Remove DeleteOnDestroy unit tests.
* TestWebKitAPI/gtk/WebKit2Gtk/WebViewTest.cpp:
(WebViewTest::wait): Use g_timeout_add instead of GMainLoopSource.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@191880 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WTF/ChangeLog
Source/WTF/wtf/glib/GMainLoopSource.cpp
Source/WTF/wtf/glib/GMainLoopSource.h
Tools/ChangeLog
Tools/TestWebKitAPI/Tests/WTF/glib/GMainLoopSource.cpp
Tools/TestWebKitAPI/gtk/WebKit2Gtk/WebViewTest.cpp