mirror of
https://github.com/servo/servo.git
synced 2025-06-19 06:38:59 +01:00
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:
parent
ef5c61e833
commit
f03ddf6c6c
6 changed files with 6 additions and 0 deletions
|
@ -1850,6 +1850,7 @@ class CGImports(CGWrapper):
|
|||
'unused_imports',
|
||||
'unused_variables',
|
||||
'unused_assignments',
|
||||
'unused_mut',
|
||||
]
|
||||
|
||||
def componentTypes(type):
|
||||
|
|
|
@ -45,6 +45,7 @@ impl DissimilarOriginLocation {
|
|||
DissimilarOriginLocationBinding::Wrap)
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn origin(&self) -> &MutableOrigin {
|
||||
self.window.origin()
|
||||
}
|
||||
|
|
|
@ -65,6 +65,7 @@ impl DissimilarOriginWindow {
|
|||
unsafe { DissimilarOriginWindowBinding::Wrap(cx, win) }
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn origin(&self) -> &MutableOrigin {
|
||||
self.globalscope.origin()
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue