remove unused methods from ThreadSafeLayoutNode

`get_input_size ` and `get_input_value ` aren't used in the codebase.

Ref.-Issue: #8063
This commit is contained in:
Roman Klauke 2015-10-18 22:17:34 +02:00
parent b847e4dd77
commit b5439a7c61

View file

@ -815,25 +815,6 @@ impl<'ln> ThreadSafeLayoutNode<'ln> {
} }
} }
pub fn get_input_value(&self) -> String {
unsafe {
let input: Option<LayoutJS<HTMLInputElement>> = 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) pub fn get_unsigned_integer_attribute(self, attribute: UnsignedIntegerAttribute)
-> Option<u32> { -> Option<u32> {
unsafe { unsafe {