Remove unused Fragment::needs_clip method

This commit is contained in:
Matt Brubeck 2014-07-01 14:26:40 -07:00
parent f7e371fdfd
commit 946d135a1d

View file

@ -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 /// A helper function to return a debug string describing the side offsets for one of the rect
/// box model properties (border, padding, or margin). /// box model properties (border, padding, or margin).
fn side_offsets_debug_fmt(&self, name: &str, fn side_offsets_debug_fmt(&self, name: &str,