diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2018-11-07 17:08:14 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2018-11-08 09:29:52 +0100 |
commit | 9f977c52878e3638f475ca9a78e9f57d0d22893d (patch) | |
tree | b1a3c3010e6c29c4f9d86930f948116b6bf27a93 /components/net | |
parent | 50c840fe42f4bf91019e9e585ee9c1c85cde232e (diff) | |
download | servo-9f977c52878e3638f475ca9a78e9f57d0d22893d.tar.gz servo-9f977c52878e3638f475ca9a78e9f57d0d22893d.zip |
Remove useless `use crate_name;` imports.
A `crate_name::foo` path always works in 2018
Diffstat (limited to 'components/net')
-rw-r--r-- | components/net/cookie.rs | 1 | ||||
-rw-r--r-- | components/net/cookie_storage.rs | 1 | ||||
-rw-r--r-- | components/net/hsts.rs | 2 | ||||
-rw-r--r-- | components/net/http_cache.rs | 1 | ||||
-rw-r--r-- | components/net/http_loader.rs | 3 | ||||
-rw-r--r-- | components/net/image_cache.rs | 2 | ||||
-rw-r--r-- | components/net/resource_thread.rs | 3 | ||||
-rw-r--r-- | components/net/tests/cookie.rs | 1 | ||||
-rw-r--r-- | components/net/tests/hsts.rs | 1 | ||||
-rw-r--r-- | components/net/tests/http_cache.rs | 1 |
10 files changed, 0 insertions, 16 deletions
diff --git a/components/net/cookie.rs b/components/net/cookie.rs index 113a49bd96e..adfd5e6147b 100644 --- a/components/net/cookie.rs +++ b/components/net/cookie.rs @@ -5,7 +5,6 @@ //! Implementation of cookie creation and matching as specified by //! http://tools.ietf.org/html/rfc6265 -use cookie_rs; use hyper_serde::{self, Serde}; use net_traits::pub_domains::is_pub_domain; use net_traits::CookieSource; diff --git a/components/net/cookie_storage.rs b/components/net/cookie_storage.rs index 2acde56866c..a0b7484f0c5 100644 --- a/components/net/cookie_storage.rs +++ b/components/net/cookie_storage.rs @@ -5,7 +5,6 @@ //! Implementation of cookie storage as specified in //! http://tools.ietf.org/html/rfc6265 -use cookie_rs; use crate::cookie::Cookie; use net_traits::pub_domains::reg_suffix; use net_traits::CookieSource; diff --git a/components/net/hsts.rs b/components/net/hsts.rs index 693869af0db..7b1329edbd5 100644 --- a/components/net/hsts.rs +++ b/components/net/hsts.rs @@ -5,11 +5,9 @@ use embedder_traits::resources::{self, Resource}; use net_traits::pub_domains::reg_suffix; use net_traits::IncludeSubdomains; -use serde_json; use servo_url::ServoUrl; use std::collections::HashMap; use std::net::{Ipv4Addr, Ipv6Addr}; -use time; #[derive(Clone, Debug, Deserialize, Serialize)] pub struct HstsEntry { diff --git a/components/net/http_cache.rs b/components/net/http_cache.rs index ab7f99f1e0e..d467a38baf3 100644 --- a/components/net/http_cache.rs +++ b/components/net/http_cache.rs @@ -29,7 +29,6 @@ use std::ops::Bound; use std::sync::atomic::{AtomicBool, Ordering}; use std::sync::Mutex; use std::time::SystemTime; -use time; use time::{Duration, Timespec, Tm}; /// The key used to differentiate requests in the cache. diff --git a/components/net/http_loader.rs b/components/net/http_loader.rs index 0bbb64a46cf..ab1de55a1c9 100644 --- a/components/net/http_loader.rs +++ b/components/net/http_loader.rs @@ -36,8 +36,6 @@ use http::uri::Authority; use http::{HeaderMap, Request as HyperRequest}; use hyper::{Body, Client, Method, Response as HyperResponse, StatusCode}; use hyper_serde::Serde; -use log; -use mime; use msg::constellation_msg::{HistoryStateId, PipelineId}; use net_traits::quality::{quality_to_value, Quality, QualityItem}; use net_traits::request::{CacheMode, CredentialsMode, Destination, Origin}; @@ -61,7 +59,6 @@ use std::time::{Duration, SystemTime}; use time::{self, Tm}; use tokio::prelude::{future, Future, Stream}; use tokio::runtime::Runtime; -use uuid; lazy_static! { pub static ref HANDLE: Mutex<Runtime> = { Mutex::new(Runtime::new().unwrap()) }; diff --git a/components/net/image_cache.rs b/components/net/image_cache.rs index 8dc194a10d1..cf95d3fc1fd 100644 --- a/components/net/image_cache.rs +++ b/components/net/image_cache.rs @@ -9,7 +9,6 @@ use net_traits::image_cache::{CanRequestImages, ImageCache, ImageResponder}; use net_traits::image_cache::{ImageOrMetadataAvailable, ImageResponse, ImageState}; use net_traits::image_cache::{PendingImageId, UsePlaceholder}; use net_traits::{FetchMetadata, FetchResponseMsg, NetworkError}; -use pixels; use servo_url::ServoUrl; use std::collections::hash_map::Entry::{Occupied, Vacant}; use std::collections::HashMap; @@ -17,7 +16,6 @@ use std::io; use std::mem; use std::sync::{Arc, Mutex}; use std::thread; -use webrender_api; /// /// TODO(gw): Remaining work on image cache: diff --git a/components/net/resource_thread.rs b/components/net/resource_thread.rs index 55366efc628..0ae1f548525 100644 --- a/components/net/resource_thread.rs +++ b/components/net/resource_thread.rs @@ -4,7 +4,6 @@ //! A thread that takes a URL and streams back the binary data. -use cookie_rs; use crate::connector::{create_http_client, create_ssl_connector_builder}; use crate::cookie; use crate::cookie_storage::CookieStorage; @@ -33,8 +32,6 @@ use profile_traits::mem::ProfilerChan as MemProfilerChan; use profile_traits::mem::{Report, ReportKind, ReportsChan}; use profile_traits::time::ProfilerChan; use serde::{Deserialize, Serialize}; -use serde_json; -use servo_allocator; use servo_channel::Sender; use servo_config::opts; use servo_url::ServoUrl; diff --git a/components/net/tests/cookie.rs b/components/net/tests/cookie.rs index 219b2979aa9..7190807ed78 100644 --- a/components/net/tests/cookie.rs +++ b/components/net/tests/cookie.rs @@ -2,7 +2,6 @@ * 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 cookie_rs; use net::cookie::Cookie; use net::cookie_storage::CookieStorage; use net_traits::CookieSource; diff --git a/components/net/tests/hsts.rs b/components/net/tests/hsts.rs index 1903aec1af4..9389c586110 100644 --- a/components/net/tests/hsts.rs +++ b/components/net/tests/hsts.rs @@ -5,7 +5,6 @@ use net::hsts::{HstsEntry, HstsList}; use net_traits::IncludeSubdomains; use std::collections::HashMap; -use time; #[test] fn test_hsts_entry_is_not_expired_when_it_has_no_timestamp() { diff --git a/components/net/tests/http_cache.rs b/components/net/tests/http_cache.rs index c63ba8131c7..f57d1b2df0a 100644 --- a/components/net/tests/http_cache.rs +++ b/components/net/tests/http_cache.rs @@ -11,7 +11,6 @@ use net_traits::request::{Destination, Request, RequestInit}; use net_traits::response::{Response, ResponseBody}; use servo_url::ServoUrl; use std::sync::mpsc::channel; -use time; #[test] |