From 8f5a4e9b395777e86b9ffdd9749678843a720c88 Mon Sep 17 00:00:00 2001 From: Denys Vitali Date: Mon, 3 Jun 2019 14:15:33 +0200 Subject: [PATCH] ScopeConfig: Remove changes from actix-http --- actix-http/src/extensions.rs | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/actix-http/src/extensions.rs b/actix-http/src/extensions.rs index d8a1de758..148e4c18e 100644 --- a/actix-http/src/extensions.rs +++ b/actix-http/src/extensions.rs @@ -2,8 +2,6 @@ use std::any::{Any, TypeId}; use std::fmt; use hashbrown::HashMap; -use hashbrown::hash_map::{Keys, Values}; -use hashbrown::hash_map::IntoIter; #[derive(Default)] /// A type map of request extensions. @@ -20,14 +18,6 @@ impl Extensions { } } - /// Create `Extensions` with the provided content - #[inline] - pub fn from(e: Extensions) -> Extensions{ - Extensions { - map: HashMap::from(e.map) - } - } - /// Insert a type into this `Extensions`. /// /// If a extension of this type already existed, it will @@ -72,18 +62,6 @@ impl Extensions { pub fn clear(&mut self) { self.map.clear(); } - - pub fn into_iter(self) -> IntoIter> { - self.map.into_iter() - } - - pub fn keys(& self) -> Keys> { - self.map.keys() - } - - pub fn values(& self) -> Values> { - self.map.values() - } } impl fmt::Debug for Extensions {