Remove needless '&mut self' from WindowMethods.

This commit is contained in:
Tetsuharu OHZEKI 2014-06-04 00:55:23 +09:00
parent a90f1e3773
commit 884346030c
2 changed files with 10 additions and 10 deletions

View file

@ -326,7 +326,7 @@ pub trait DocumentMethods {
fn Scripts(&self) -> Temporary<HTMLCollection>;
fn Anchors(&self) -> Temporary<HTMLCollection>;
fn Applets(&self) -> Temporary<HTMLCollection>;
fn Location(&mut self) -> Temporary<Location>;
fn Location(&self) -> Temporary<Location>;
fn Children(&self) -> Temporary<HTMLCollection>;
fn GetOnload(&self) -> Option<EventHandlerNonNull>;
fn SetOnload(&mut self, listener: Option<EventHandlerNonNull>);
@ -800,7 +800,7 @@ impl<'a> DocumentMethods for JSRef<'a, Document> {
HTMLCollection::create(&*window, NodeCast::from_ref(self), filter)
}
fn Location(&mut self) -> Temporary<Location> {
fn Location(&self) -> Temporary<Location> {
let mut window = self.window.root();
window.Location()
}