You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.0 KiB
48 lines
1.0 KiB
From 6c30f50f02209070090849e9f0d996353280361b Mon Sep 17 00:00:00 2001
|
|
From: Steven Fackler <sfackler@gmail.com>
|
|
Date: Sat, 13 Jan 2018 15:41:15 -0800
|
|
Subject: [PATCH] Remove unicase support
|
|
|
|
It's out of date, and was only added for Servo which no longer uses it.
|
|
|
|
Closes #113
|
|
Closes #109
|
|
Closes #114
|
|
---
|
|
phf_shared/src/lib.rs | 12 ------------
|
|
1 file changed, 12 deletions(-)
|
|
|
|
diff --git a/phf_shared/src/lib.rs b/phf_shared/src/lib.rs
|
|
index 7656c69..43074fd 100644
|
|
--- a/phf_shared/src/lib.rs
|
|
+++ b/phf_shared/src/lib.rs
|
|
@@ -6,9 +6,6 @@ extern crate std as core;
|
|
|
|
extern crate siphasher;
|
|
|
|
-#[cfg(feature = "unicase")]
|
|
-extern crate unicase;
|
|
-
|
|
use core::hash::{Hasher, Hash};
|
|
use siphasher::sip::SipHasher13;
|
|
|
|
@@ -110,15 +107,6 @@ impl PhfHash for [u8] {
|
|
}
|
|
}
|
|
|
|
-#[cfg(feature = "unicase")]
|
|
-impl<S> PhfHash for unicase::UniCase<S>
|
|
-where unicase::UniCase<S>: Hash {
|
|
- #[inline]
|
|
- fn phf_hash<H: Hasher>(&self, state: &mut H) {
|
|
- self.hash(state)
|
|
- }
|
|
-}
|
|
-
|
|
macro_rules! sip_impl(
|
|
(le $t:ty) => (
|
|
impl PhfHash for $t {
|
|
--
|
|
2.16.1
|
|
|