diff options
| author | bors <bors@rust-lang.org> | 2015-08-13 23:32:30 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-08-13 23:32:30 +0000 |
| commit | 82b89645fb6ec31138d5788b588ddd7e44c434fa (patch) | |
| tree | 46903a10262b98e3c864f47c76835336f811675c /src/libstd/time | |
| parent | a4066271b77810aec0a4a309f66a45e4f8b940de (diff) | |
| parent | 8d90d3f36871a00023cc1f313f91e351c287ca15 (diff) | |
| download | rust-82b89645fb6ec31138d5788b588ddd7e44c434fa.tar.gz rust-82b89645fb6ec31138d5788b588ddd7e44c434fa.zip | |
Auto merge of #27684 - alexcrichton:remove-deprecated, r=aturon
This commit removes all unstable and deprecated functions in the standard library. A release was recently cut (1.3) which makes this a good time for some spring cleaning of the deprecated functions.
Diffstat (limited to 'src/libstd/time')
| -rw-r--r-- | src/libstd/time/duration.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/libstd/time/duration.rs b/src/libstd/time/duration.rs index ba9c3157b02..d16fa83c2af 100644 --- a/src/libstd/time/duration.rs +++ b/src/libstd/time/duration.rs @@ -92,14 +92,6 @@ impl Duration { #[stable(feature = "duration", since = "1.3.0")] pub fn as_secs(&self) -> u64 { self.secs } - #[deprecated(reason = "renamed to `as_secs`", since = "1.3.0")] - #[unstable(feature = "duration_deprecated")] - /// Returns the number of whole seconds represented by this duration. - /// - /// The extra precision represented by this duration is ignored (e.g. extra - /// nanoseconds are not represented in the returned value). - pub fn secs(&self) -> u64 { self.as_secs() } - /// Returns the nanosecond precision represented by this duration. /// /// This method does **not** return the length of the duration when @@ -107,15 +99,6 @@ impl Duration { /// fractional portion of a second (e.g. it is less than one billion). #[stable(feature = "duration", since = "1.3.0")] pub fn subsec_nanos(&self) -> u32 { self.nanos } - - #[deprecated(reason = "renamed to `subsec_nanos`", since = "1.3.0")] - #[unstable(feature = "duration_deprecated")] - /// Returns the nanosecond precision represented by this duration. - /// - /// This method does **not** return the length of the duration when - /// represented by nanoseconds. The returned number always represents a - /// fractional portion of a second (e.g. it is less than one billion). - pub fn extra_nanos(&self) -> u32 { self.subsec_nanos() } } impl Add for Duration { |
