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))]