Fix some "unused" warnings

This commit is contained in:
Simon Sapin 2017-06-06 16:58:35 +02:00
parent 2da8eb0342
commit 008e733df6
5 changed files with 1 additions and 18 deletions

2
Cargo.lock generated
View file

@ -1456,9 +1456,7 @@ dependencies = [
name = "layout_tests"
version = "0.0.1"
dependencies = [
"atomic_refcell 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"layout 0.0.1",
"script_layout_interface 0.0.1",
"size_of_test 0.0.1",
]

View file

@ -519,17 +519,6 @@ fn matches_simple_selector<E, F>(
where E: Element,
F: FnMut(&E, ElementSelectorFlags),
{
macro_rules! relation_if {
($ex:expr, $flag:ident) => {
if $ex {
context.relations |= $flag;
true
} else {
false
}
}
}
match *selector {
Component::Combinator(_) => unreachable!(),
Component::PseudoElement(ref pseudo) => {

View file

@ -10,7 +10,5 @@ path = "lib.rs"
doctest = false
[dependencies]
atomic_refcell = "0.1"
layout = {path = "../../../components/layout"}
script_layout_interface = {path = "../../../components/script_layout_interface"}
size_of_test = {path = "../../../components/size_of_test"}

View file

@ -2,9 +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/. */
extern crate atomic_refcell;
extern crate layout;
extern crate script_layout_interface;
#[macro_use] extern crate size_of_test;
#[cfg(all(test, target_pointer_width = "64"))] mod size_of;

View file

@ -34,7 +34,7 @@ extern crate url;
use devtools_traits::DevtoolsControlMsg;
use hyper::server::{Handler, Listening, Server};
use net::connector::{create_http_connector, create_ssl_client};
use net::connector::create_ssl_client;
use net::fetch::cors_cache::CorsCache;
use net::fetch::methods::{self, FetchContext};
use net::filemanager_thread::FileManager;