diff --git a/ports/geckolib/Cargo.toml b/ports/geckolib/Cargo.toml index a22080ce1c8..8703128ab03 100644 --- a/ports/geckolib/Cargo.toml +++ b/ports/geckolib/Cargo.toml @@ -17,7 +17,6 @@ gecko_debug = ["style/gecko_debug"] atomic_refcell = "0.1" cssparser = "0.23.0" cstr = "0.1.2" -env_logger = {version = "0.5", default-features = false} # disable `regex` to reduce code size libc = "0.2" log = {version = "0.4", features = ["release_max_level_info"]} malloc_size_of = {path = "../../components/malloc_size_of"} diff --git a/ports/geckolib/glue.rs b/ports/geckolib/glue.rs index 855771dfb82..d6d6b3d026b 100644 --- a/ports/geckolib/glue.rs +++ b/ports/geckolib/glue.rs @@ -4,7 +4,6 @@ use cssparser::{ParseErrorKind, Parser, ParserInput, SourceLocation}; use cssparser::ToCss as ParserToCss; -use env_logger::Builder; use malloc_size_of::MallocSizeOfOps; use nsstring::nsCString; use selectors::{NthIndexCache, SelectorList}; @@ -12,7 +11,6 @@ use selectors::matching::{MatchingContext, MatchingMode, matches_selector}; use servo_arc::{Arc, ArcBorrow, RawOffsetArc}; use smallvec::SmallVec; use std::cell::RefCell; -use std::env; use std::fmt::Write; use std::iter; use std::mem; @@ -184,14 +182,6 @@ static mut DUMMY_URL_DATA: *mut URLExtraData = 0 as *mut URLExtraData; pub extern "C" fn Servo_Initialize(dummy_url_data: *mut URLExtraData) { use style::gecko_bindings::sugar::origin_flags; - // Initialize logging. - let mut builder = Builder::new(); - let default_level = if cfg!(debug_assertions) { "warn" } else { "error" }; - match env::var("RUST_LOG") { - Ok(v) => builder.parse(&v).init(), - _ => builder.parse(default_level).init(), - }; - // Pretend that we're a Servo Layout thread, to make some assertions happy. thread_state::initialize(thread_state::ThreadState::LAYOUT); diff --git a/ports/geckolib/lib.rs b/ports/geckolib/lib.rs index d48a096df64..79150f62bf7 100644 --- a/ports/geckolib/lib.rs +++ b/ports/geckolib/lib.rs @@ -5,7 +5,6 @@ extern crate cssparser; #[macro_use] extern crate cstr; -extern crate env_logger; extern crate libc; #[macro_use] extern crate log; extern crate malloc_size_of; diff --git a/ports/geckolib/tests/lib.rs b/ports/geckolib/tests/lib.rs index 6fc2b36029c..9981611d17a 100644 --- a/ports/geckolib/tests/lib.rs +++ b/ports/geckolib/tests/lib.rs @@ -14,7 +14,6 @@ extern crate atomic_refcell; extern crate cssparser; #[macro_use] extern crate cstr; -extern crate env_logger; extern crate geckoservo; #[macro_use] extern crate log; extern crate malloc_size_of;