diff options
| author | Brian Anderson <banderson@mozilla.com> | 2014-07-28 16:25:58 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2014-08-13 11:31:47 -0700 |
| commit | 8a5fe8655af5b8927cb6868d715c5bd9fa30c3b3 (patch) | |
| tree | 8a4432ca8fba919c235b03a5ff6c7c368ff53df0 /src/libstd | |
| parent | 1666dabcbc2628fb4a5e4b9c43a13fd1179112b2 (diff) | |
| download | rust-8a5fe8655af5b8927cb6868d715c5bd9fa30c3b3.tar.gz rust-8a5fe8655af5b8927cb6868d715c5bd9fa30c3b3.zip | |
std: Remove the `zero` constructor from `Duration`
This is a workaround for having to write `Zero::zero` and will be solved at the language level someday.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/time.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/libstd/time.rs b/src/libstd/time.rs index 8050891e2a9..1025d5c06fc 100644 --- a/src/libstd/time.rs +++ b/src/libstd/time.rs @@ -69,12 +69,6 @@ impl Duration { Some(Duration { days: days, secs: secs as u32, nanos: nanos as u32 }) } - /// Makes a new `Duration` with zero seconds. - #[inline] - pub fn zero() -> Duration { - Duration { days: 0, secs: 0, nanos: 0 } - } - /// Makes a new `Duration` with given number of weeks. /// Equivalent to `Duration::new(weeks * 7, 0, 0)` with overflow checks. /// |
