From 946d135a1d07770371768621e79cbaa5d4d49199 Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Tue, 1 Jul 2014 14:26:40 -0700 Subject: [PATCH] Remove unused Fragment::needs_clip method --- src/components/layout/fragment.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/components/layout/fragment.rs b/src/components/layout/fragment.rs index 2266b4c4baf..d132cd47a9b 100644 --- a/src/components/layout/fragment.rs +++ b/src/components/layout/fragment.rs @@ -1395,14 +1395,6 @@ impl Fragment { } } - /// Returns true if the contents should be clipped (i.e. if `overflow` is not `visible`). - pub fn needs_clip(&self) -> bool { - match self.style().get_box().overflow { - overflow::visible => true, - overflow::hidden | overflow::auto | overflow::scroll => false, - } - } - /// A helper function to return a debug string describing the side offsets for one of the rect /// box model properties (border, padding, or margin). fn side_offsets_debug_fmt(&self, name: &str,