diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-04-21 15:28:53 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-04-21 15:28:53 -0700 |
| commit | a1dd5ac78745a9f266573d539ba34bbd75b50277 (patch) | |
| tree | 584e29815ca61d4045fa6bfa048d3804c7ce529a /src/libstd/thread | |
| parent | 98e9765d973d46faa5c80fb37a48040ca9e87b28 (diff) | |
| parent | a568a7f9f2eb3fa3f3e049df288ef0ad32cc7881 (diff) | |
| download | rust-a1dd5ac78745a9f266573d539ba34bbd75b50277.tar.gz rust-a1dd5ac78745a9f266573d539ba34bbd75b50277.zip | |
rollup merge of #24636: alexcrichton/remove-deprecated
Conflicts: src/libcore/result.rs
Diffstat (limited to 'src/libstd/thread')
| -rw-r--r-- | src/libstd/thread/mod.rs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/libstd/thread/mod.rs b/src/libstd/thread/mod.rs index 4fd0340f09a..c65377e238f 100644 --- a/src/libstd/thread/mod.rs +++ b/src/libstd/thread/mod.rs @@ -497,15 +497,6 @@ pub fn sleep_ms(ms: u32) { imp::sleep(Duration::milliseconds(ms as i64)) } -/// Deprecated: use `sleep_ms` instead. -#[unstable(feature = "thread_sleep", - reason = "recently added, needs an RFC, and `Duration` itself is \ - unstable")] -#[deprecated(since = "1.0.0", reason = "use sleep_ms instead")] -pub fn sleep(dur: Duration) { - imp::sleep(dur) -} - /// Blocks unless or until the current thread's token is made available (may wake spuriously). /// /// See the module doc for more detail. @@ -546,13 +537,6 @@ pub fn park_timeout_ms(ms: u32) { *guard = false; } -/// Deprecated: use `park_timeout_ms` -#[unstable(feature = "std_misc", reason = "recently introduced, depends on Duration")] -#[deprecated(since = "1.0.0", reason = "use park_timeout_ms instead")] -pub fn park_timeout(duration: Duration) { - park_timeout_ms(duration.num_milliseconds() as u32) -} - //////////////////////////////////////////////////////////////////////////////// // Thread //////////////////////////////////////////////////////////////////////////////// |
