Remove needless '&mut self' from HTMLTableSectionElementMethods.

This commit is contained in:
Tetsuharu OHZEKI 2014-05-31 02:16:29 +09:00
parent 8fc6821d80
commit 641bce83db

View file

@ -38,19 +38,19 @@ impl HTMLTableSectionElement {
} }
pub trait HTMLTableSectionElementMethods { pub trait HTMLTableSectionElementMethods {
fn DeleteRow(&mut self, _index: i32) -> ErrorResult; fn DeleteRow(&self, _index: i32) -> ErrorResult;
fn Align(&self) -> DOMString; fn Align(&self) -> DOMString;
fn SetAlign(&mut self, _align: DOMString) -> ErrorResult; fn SetAlign(&self, _align: DOMString) -> ErrorResult;
fn Ch(&self) -> DOMString; fn Ch(&self) -> DOMString;
fn SetCh(&mut self, _ch: DOMString) -> ErrorResult; fn SetCh(&self, _ch: DOMString) -> ErrorResult;
fn ChOff(&self) -> DOMString; fn ChOff(&self) -> DOMString;
fn SetChOff(&mut self, _ch_off: DOMString) -> ErrorResult; fn SetChOff(&self, _ch_off: DOMString) -> ErrorResult;
fn VAlign(&self) -> DOMString; fn VAlign(&self) -> DOMString;
fn SetVAlign(&mut self, _v_align: DOMString) -> ErrorResult; fn SetVAlign(&self, _v_align: DOMString) -> ErrorResult;
} }
impl<'a> HTMLTableSectionElementMethods for JSRef<'a, HTMLTableSectionElement> { impl<'a> HTMLTableSectionElementMethods for JSRef<'a, HTMLTableSectionElement> {
fn DeleteRow(&mut self, _index: i32) -> ErrorResult { fn DeleteRow(&self, _index: i32) -> ErrorResult {
Ok(()) Ok(())
} }
@ -58,7 +58,7 @@ impl<'a> HTMLTableSectionElementMethods for JSRef<'a, HTMLTableSectionElement> {
"".to_owned() "".to_owned()
} }
fn SetAlign(&mut self, _align: DOMString) -> ErrorResult { fn SetAlign(&self, _align: DOMString) -> ErrorResult {
Ok(()) Ok(())
} }
@ -66,7 +66,7 @@ impl<'a> HTMLTableSectionElementMethods for JSRef<'a, HTMLTableSectionElement> {
"".to_owned() "".to_owned()
} }
fn SetCh(&mut self, _ch: DOMString) -> ErrorResult { fn SetCh(&self, _ch: DOMString) -> ErrorResult {
Ok(()) Ok(())
} }
@ -74,7 +74,7 @@ impl<'a> HTMLTableSectionElementMethods for JSRef<'a, HTMLTableSectionElement> {
"".to_owned() "".to_owned()
} }
fn SetChOff(&mut self, _ch_off: DOMString) -> ErrorResult { fn SetChOff(&self, _ch_off: DOMString) -> ErrorResult {
Ok(()) Ok(())
} }
@ -82,7 +82,7 @@ impl<'a> HTMLTableSectionElementMethods for JSRef<'a, HTMLTableSectionElement> {
"".to_owned() "".to_owned()
} }
fn SetVAlign(&mut self, _v_align: DOMString) -> ErrorResult { fn SetVAlign(&self, _v_align: DOMString) -> ErrorResult {
Ok(()) Ok(())
} }
} }