diff --git a/src/util.rs b/src/util.rs deleted file mode 100644 index cbf0e810..00000000 --- a/src/util.rs +++ /dev/null @@ -1,12 +0,0 @@ -use std::collections::hash_map::RandomState; -use std::hash::{Hash, Hasher, BuildHasher}; - -use layout::Rect; - -pub fn hash(t: &T, area: &Rect) -> u64 { - let state = RandomState::new(); - let mut hasher = state.build_hasher(); - t.hash(&mut hasher); - area.hash(&mut hasher); - hasher.finish() -}