summaryrefslogtreecommitdiffstats
path: root/client/x11
diff options
context:
space:
mode:
authorYonit Halperin <yhalperi@redhat.com>2009-11-09 18:05:40 +0200
committerYaniv Kamay <ykamay@redhat.com>2010-01-03 17:19:35 +0200
commit9b12f7ca8c4aa2c9b4d63f8ebd228992380c3976 (patch)
tree332e5869e46f42364c5ddc8b17af9c524387fc66 /client/x11
parentda98669691f5041d16d40bd6b8b794af3a822a7c (diff)
downloadspice-9b12f7ca8c4aa2c9b4d63f8ebd228992380c3976.tar.gz
spice-9b12f7ca8c4aa2c9b4d63f8ebd228992380c3976.tar.xz
spice-9b12f7ca8c4aa2c9b4d63f8ebd228992380c3976.zip
spice client: remove timer interface from platform - use Application (via ProcessLoop interface).
Diffstat (limited to 'client/x11')
-rw-r--r--client/x11/platform.cpp35
1 files changed, 0 insertions, 35 deletions
diff --git a/client/x11/platform.cpp b/client/x11/platform.cpp
index 2c9a646a..f4963b5e 100644
--- a/client/x11/platform.cpp
+++ b/client/x11/platform.cpp
@@ -2422,38 +2422,3 @@ LocalCursor* Platform::create_default_cursor()
{
return new XDefaultCursor();
}
-
-class PlatformTimer: public Timer {
-public:
- PlatformTimer(timer_proc_t proc, void* opaque) : _proc(proc), _opaque(opaque) {}
- void response(AbstractProcessLoop& events_loop) {_proc(_opaque, (TimerID)this);}
-
-private:
- timer_proc_t _proc;
- void* _opaque;
-};
-
-TimerID Platform::create_interval_timer(timer_proc_t proc, void* opaque)
-{
- return (TimerID)(new PlatformTimer(proc, opaque));
-}
-
-bool Platform::activate_interval_timer(TimerID timer, unsigned int millisec)
-{
- ASSERT(main_loop);
- main_loop->activate_interval_timer((PlatformTimer*)timer, millisec);
- return true;
-}
-
-bool Platform::deactivate_interval_timer(TimerID timer)
-{
- ASSERT(main_loop);
- main_loop->deactivate_interval_timer((PlatformTimer*)timer);
- return true;
-}
-
-void Platform::destroy_interval_timer(TimerID timer)
-{
- deactivate_interval_timer(timer);
- ((PlatformTimer*)timer)->unref();
-}