From ec34856feadfb56971bc06f7da7ada67394440a8 Mon Sep 17 00:00:00 2001 From: Yonit Halperin Date: Mon, 9 Nov 2009 18:05:40 +0200 Subject: spice client: remove timer interface from platform - use Application (via ProcessLoop interface). --- client/x11/platform.cpp | 35 ----------------------------------- 1 file changed, 35 deletions(-) (limited to 'client/x11/platform.cpp') 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(); -} -- cgit