From b5439a7c61bd0f585ece625bd5cca8bf7317ce4b Mon Sep 17 00:00:00 2001 From: Roman Klauke Date: Sun, 18 Oct 2015 22:17:34 +0200 Subject: [PATCH] remove unused methods from ThreadSafeLayoutNode `get_input_size ` and `get_input_value ` aren't used in the codebase. Ref.-Issue: #8063 --- components/layout/wrapper.rs | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/components/layout/wrapper.rs b/components/layout/wrapper.rs index d36d4480976..85704e09154 100644 --- a/components/layout/wrapper.rs +++ b/components/layout/wrapper.rs @@ -815,25 +815,6 @@ impl<'ln> ThreadSafeLayoutNode<'ln> { } } - pub fn get_input_value(&self) -> String { - unsafe { - let input: Option> = HTMLInputElementCast::to_layout_js(self.get_jsmanaged()); - match input { - Some(input) => input.get_value_for_layout(), - None => panic!("not an input element!") - } - } - } - - pub fn get_input_size(&self) -> u32 { - unsafe { - match HTMLInputElementCast::to_layout_js(self.get_jsmanaged()) { - Some(input) => input.get_size_for_layout(), - None => panic!("not an input element!") - } - } - } - pub fn get_unsigned_integer_attribute(self, attribute: UnsignedIntegerAttribute) -> Option { unsafe {