mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
style: Back out ordermap.
It was worth a shot!
This commit is contained in:
parent
9c94fe4279
commit
25868beabd
8 changed files with 3 additions and 384 deletions
|
@ -513,7 +513,6 @@ impl<V: 'static> MaybeCaseInsensitiveHashMap<Atom, V> {
|
|||
}
|
||||
|
||||
/// HashMap::try_entry
|
||||
#[cfg(not(feature = "gecko"))]
|
||||
pub fn try_entry(
|
||||
&mut self,
|
||||
mut key: Atom,
|
||||
|
@ -525,22 +524,6 @@ impl<V: 'static> MaybeCaseInsensitiveHashMap<Atom, V> {
|
|||
self.0.try_entry(key)
|
||||
}
|
||||
|
||||
/// HashMap::try_entry
|
||||
///
|
||||
/// FIXME(emilio): Remove the extra Entry parameter and unify when ordermap
|
||||
/// 0.4 is released.
|
||||
#[cfg(feature = "gecko")]
|
||||
pub fn try_entry(
|
||||
&mut self,
|
||||
mut key: Atom,
|
||||
quirks_mode: QuirksMode,
|
||||
) -> Result<hash_map::Entry<Atom, V, BuildHasherDefault<PrecomputedHasher>>, FailedAllocationError> {
|
||||
if quirks_mode == QuirksMode::Quirks {
|
||||
key = key.to_ascii_lowercase()
|
||||
}
|
||||
self.0.try_entry(key)
|
||||
}
|
||||
|
||||
/// HashMap::iter
|
||||
pub fn iter(&self) -> hash_map::Iter<Atom, V> {
|
||||
self.0.iter()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue