aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Cargo.lock2
-rw-r--r--components/selectors/matching.rs11
-rw-r--r--tests/unit/layout/Cargo.toml2
-rw-r--r--tests/unit/layout/lib.rs2
-rw-r--r--tests/unit/net/lib.rs2
5 files changed, 1 insertions, 18 deletions
diff --git a/Cargo.lock b/Cargo.lock
index b5981a9cf6b..4f18fb7386d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -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",
]
diff --git a/components/selectors/matching.rs b/components/selectors/matching.rs
index 3a2ddfd998a..3c269427421 100644
--- a/components/selectors/matching.rs
+++ b/components/selectors/matching.rs
@@ -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) => {
diff --git a/tests/unit/layout/Cargo.toml b/tests/unit/layout/Cargo.toml
index 358d5054ca0..d84754912db 100644
--- a/tests/unit/layout/Cargo.toml
+++ b/tests/unit/layout/Cargo.toml
@@ -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"}
diff --git a/tests/unit/layout/lib.rs b/tests/unit/layout/lib.rs
index 9ad41273993..a763135260a 100644
--- a/tests/unit/layout/lib.rs
+++ b/tests/unit/layout/lib.rs
@@ -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;
diff --git a/tests/unit/net/lib.rs b/tests/unit/net/lib.rs
index 236432e009e..2116fa3dd83 100644
--- a/tests/unit/net/lib.rs
+++ b/tests/unit/net/lib.rs
@@ -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;