diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-10-24 11:30:35 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-10-24 15:17:27 -0700 |
| commit | 3ee5ef12fb71be95d6e7f679900a497a2580d25e (patch) | |
| tree | 33f8f79dc33dcc7404ed9c893529e0f82d009458 /src/libstd/rt/uv | |
| parent | 3b30377e14f60e6381dc1536bd53b5f9c7a3d7c7 (diff) | |
| download | rust-3ee5ef12fb71be95d6e7f679900a497a2580d25e.tar.gz rust-3ee5ef12fb71be95d6e7f679900a497a2580d25e.zip | |
Remove the 'callback_ms' function from EventLoop
This is a peculiar function to require event loops to implement, and it's only used in one spot during tests right now. Instead, a possibly more robust apis for timers should be used rather than requiring all event loops to implement a curious-looking function.
Diffstat (limited to 'src/libstd/rt/uv')
| -rw-r--r-- | src/libstd/rt/uv/uvio.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/libstd/rt/uv/uvio.rs b/src/libstd/rt/uv/uvio.rs index 29370c484eb..eee89365fb5 100644 --- a/src/libstd/rt/uv/uvio.rs +++ b/src/libstd/rt/uv/uvio.rs @@ -222,15 +222,6 @@ impl EventLoop for UvEventLoop { } as ~PausibleIdleCallback } - fn callback_ms(&mut self, ms: u64, f: ~fn()) { - let mut timer = TimerWatcher::new(self.uvio.uv_loop()); - do timer.start(ms, 0) |timer, status| { - assert!(status.is_none()); - timer.close(||()); - f(); - } - } - fn remote_callback(&mut self, f: ~fn()) -> ~RemoteCallback { ~UvRemoteCallback::new(self.uvio.uv_loop(), f) as ~RemoteCallback } |
