mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 09:15:35 +00:00
servo: Merge #10365 - servo: Clean up unused variables and imports (from emilio:warnings); r=Wafflespeanut
Source-Repo: https://github.com/servo/servo Source-Revision: a29da7b48e41327aa7226bda8bea7b00dac88b6c
This commit is contained in:
parent
85586d4677
commit
74d1661a85
@ -115,8 +115,8 @@ use style::restyle_hints::ElementSnapshot;
|
|||||||
use style::servo::Stylesheet;
|
use style::servo::Stylesheet;
|
||||||
use task_source::dom_manipulation::DOMManipulationTask;
|
use task_source::dom_manipulation::DOMManipulationTask;
|
||||||
use time;
|
use time;
|
||||||
|
use url::Url;
|
||||||
use url::percent_encoding::percent_decode;
|
use url::percent_encoding::percent_decode;
|
||||||
use url::{Host, Url};
|
|
||||||
use util::str::{DOMString, split_html_space_chars, str_join};
|
use util::str::{DOMString, split_html_space_chars, str_join};
|
||||||
|
|
||||||
#[derive(JSTraceable, PartialEq, HeapSizeOf)]
|
#[derive(JSTraceable, PartialEq, HeapSizeOf)]
|
||||||
|
@ -40,7 +40,7 @@ impl StyleSheetListMethods for StyleSheetList {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// https://drafts.csswg.org/cssom/#dom-stylesheetlist-item
|
// https://drafts.csswg.org/cssom/#dom-stylesheetlist-item
|
||||||
fn Item(&self, index: u32) -> Option<Root<StyleSheet>> {
|
fn Item(&self, _index: u32) -> Option<Root<StyleSheet>> {
|
||||||
None
|
None
|
||||||
//TODO Create a new StyleSheet object and return it
|
//TODO Create a new StyleSheet object and return it
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
use util::prefs::{PrefValue, extend_prefs, read_prefs_from_file, get_pref, set_pref, reset_pref, reset_all_prefs};
|
use util::prefs::{PrefValue, extend_prefs, read_prefs_from_file, get_pref, set_pref, reset_pref};
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_create_pref() {
|
fn test_create_pref() {
|
||||||
|
Loading…
Reference in New Issue
Block a user