servo: Clean up unused variables and imports

This commit is contained in:
Emilio Cobos Álvarez 2016-04-02 16:30:18 +02:00
parent 5e73e1015b
commit a57aa561c1
3 changed files with 3 additions and 3 deletions

View file

@ -114,8 +114,8 @@ use style::restyle_hints::ElementSnapshot;
use style::servo::Stylesheet;
use task_source::dom_manipulation::DOMManipulationTask;
use time;
use url::Url;
use url::percent_encoding::percent_decode;
use url::{Host, Url};
use util::str::{DOMString, split_html_space_chars, str_join};
#[derive(JSTraceable, PartialEq, HeapSizeOf)]

View file

@ -40,7 +40,7 @@ impl StyleSheetListMethods for StyleSheetList {
}
// 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
//TODO Create a new StyleSheet object and return it
}

View file

@ -2,7 +2,7 @@
* 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/. */
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]
fn test_create_pref() {