From b833bfad7a404aa065f9feb3a034e1fdf9015cbe Mon Sep 17 00:00:00 2001 From: Nicolas Silva Date: Fri, 4 Jan 2019 16:20:42 +0100 Subject: [PATCH] Remove some dead code. --- webrender/src/border.rs | 11 ----------- webrender/src/prim_store/mod.rs | 9 --------- 2 files changed, 20 deletions(-) diff --git a/webrender/src/border.rs b/webrender/src/border.rs index ac833628ff..c07d1a27ad 100644 --- a/webrender/src/border.rs +++ b/webrender/src/border.rs @@ -44,17 +44,6 @@ pub struct BorderRadiusAu { pub bottom_right: LayoutSizeAu, } -impl BorderRadiusAu { - pub fn zero() -> Self { - BorderRadiusAu { - top_left: LayoutSizeAu::zero(), - top_right: LayoutSizeAu::zero(), - bottom_left: LayoutSizeAu::zero(), - bottom_right: LayoutSizeAu::zero(), - } - } -} - impl From for BorderRadiusAu { fn from(radius: BorderRadius) -> BorderRadiusAu { BorderRadiusAu { diff --git a/webrender/src/prim_store/mod.rs b/webrender/src/prim_store/mod.rs index b27e790753..1186752c49 100644 --- a/webrender/src/prim_store/mod.rs +++ b/webrender/src/prim_store/mod.rs @@ -491,15 +491,6 @@ impl From> for SizeKey { } } -impl SizeKey { - pub fn zero() -> SizeKey { - SizeKey { - w: 0.0, - h: 0.0, - } - } -} - /// A hashable vec for using as a key during primitive interning. #[cfg_attr(feature = "capture", derive(Serialize))] #[cfg_attr(feature = "replay", derive(Deserialize))]