summaryrefslogtreecommitdiffstats
path: root/client/windows/platform.cpp
diff options
context:
space:
mode:
authorYonit Halperin <yhalperi@redhat.com>2009-11-09 18:05:40 +0200
committerYaniv Kamay <ykamay@redhat.com>2009-11-09 19:06:44 +0200
commitec34856feadfb56971bc06f7da7ada67394440a8 (patch)
tree9ef91c6a0ca613d500ddc9dda829cf1c8c62545d /client/windows/platform.cpp
parent4c72ba138c391c27d15e23c349c87e23fd813ac6 (diff)
downloadspice-ec34856feadfb56971bc06f7da7ada67394440a8.tar.gz
spice-ec34856feadfb56971bc06f7da7ada67394440a8.tar.xz
spice-ec34856feadfb56971bc06f7da7ada67394440a8.zip
spice client: remove timer interface from platform - use Application (via ProcessLoop interface).
Diffstat (limited to 'client/windows/platform.cpp')
-rw-r--r--client/windows/platform.cpp35
1 files changed, 0 insertions, 35 deletions
diff --git a/client/windows/platform.cpp b/client/windows/platform.cpp
index d93283e5..0fe7b244 100644
--- a/client/windows/platform.cpp
+++ b/client/windows/platform.cpp
@@ -618,38 +618,3 @@ Icon* Platform::load_icon(int id)
}
return new WinIcon(icon);
}
-
-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();
-}