Revert "Add canary and journaling."

This reverts commit 58322d0021.
This commit is contained in:
Manish Goregaokar 2017-10-23 13:46:05 -07:00
parent f7ad19f500
commit d6bafde971
3 changed files with 10 additions and 90 deletions

View file

@ -182,7 +182,7 @@ pub struct GapThenFull<K, V, M> {
/// A hash that is not zero, since we use a hash of zero to represent empty
/// buckets.
#[derive(PartialEq, Copy, Clone, Debug)]
#[derive(PartialEq, Copy, Clone)]
pub struct SafeHash {
hash: HashUint,
}
@ -816,12 +816,6 @@ impl<K, V> RawTable<K, V> {
}
}
/// Returns a raw pointer to the table's buffer.
#[inline]
pub fn raw_buffer(&self) -> *const u8 {
self.hashes.ptr() as *const u8
}
/// Creates a new raw table from a given capacity. All buckets are
/// initially empty.
pub fn new(capacity: usize) -> Result<RawTable<K, V>, FailedAllocationError> {