From a57aa561c1a2de38602217f6053195b6a4e75743 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Sat, 2 Apr 2016 16:30:18 +0200 Subject: [PATCH] servo: Clean up unused variables and imports --- components/script/dom/document.rs | 2 +- components/script/dom/stylesheetlist.rs | 2 +- tests/unit/util/prefs.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index eb7e0da8a1b..de6ac56e938 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -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)] diff --git a/components/script/dom/stylesheetlist.rs b/components/script/dom/stylesheetlist.rs index d6c58256dc2..1b7eb643e50 100644 --- a/components/script/dom/stylesheetlist.rs +++ b/components/script/dom/stylesheetlist.rs @@ -40,7 +40,7 @@ impl StyleSheetListMethods for StyleSheetList { } // https://drafts.csswg.org/cssom/#dom-stylesheetlist-item - fn Item(&self, index: u32) -> Option> { + fn Item(&self, _index: u32) -> Option> { None //TODO Create a new StyleSheet object and return it } diff --git a/tests/unit/util/prefs.rs b/tests/unit/util/prefs.rs index bb0226a7d25..98bc35b4dc3 100644 --- a/tests/unit/util/prefs.rs +++ b/tests/unit/util/prefs.rs @@ -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() {