Fix various build warnings

This should remove six separate warnings when building servo. One of
the warnings was an unused mut, and the other were various dead code
warnings
This commit is contained in:
Aaron Cunningham 2017-04-24 21:03:11 -07:00
parent ef5c61e833
commit f03ddf6c6c
6 changed files with 6 additions and 0 deletions

View file

@ -1850,6 +1850,7 @@ class CGImports(CGWrapper):
'unused_imports',
'unused_variables',
'unused_assignments',
'unused_mut',
]
def componentTypes(type):

View file

@ -45,6 +45,7 @@ impl DissimilarOriginLocation {
DissimilarOriginLocationBinding::Wrap)
}
#[allow(dead_code)]
pub fn origin(&self) -> &MutableOrigin {
self.window.origin()
}

View file

@ -65,6 +65,7 @@ impl DissimilarOriginWindow {
unsafe { DissimilarOriginWindowBinding::Wrap(cx, win) }
}
#[allow(dead_code)]
pub fn origin(&self) -> &MutableOrigin {
self.globalscope.origin()
}

View file

@ -61,6 +61,7 @@ impl Location {
self.window.load_url(self.get_url(), true, true, None);
}
#[allow(dead_code)]
pub fn origin(&self) -> &MutableOrigin {
self.window.origin()
}