From 8a5fe8655af5b8927cb6868d715c5bd9fa30c3b3 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Mon, 28 Jul 2014 16:25:58 -0700 Subject: [PATCH] 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. --- src/libstd/time.rs | 6 ------ 1 file changed, 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. ///