Skip to content

Commit

Permalink
feat: remove prefix_map make with_bit public
Browse files Browse the repository at this point in the history
BREAKING CHANGE: remove prefix_map
  • Loading branch information
grumbach committed Aug 24, 2021
1 parent 492f70e commit efa63e2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 318 deletions.
4 changes: 0 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ repository = "https://github.com/maidsafe/xor_name"
[dependencies]
rand_core = "0.5.1"

[dependencies.dashmap]
version = "4.0.2"
features = [ "serde" ]

[dependencies.tiny-keccak]
version = "~2.0"
features = [ "sha3" ]
Expand Down
4 changes: 1 addition & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@

use core::{cmp::Ordering, fmt, ops};
pub use prefix::Prefix;
pub use prefix_map::PrefixMap;
use rand::{
distributions::{Distribution, Standard},
rngs::OsRng,
Expand Down Expand Up @@ -96,7 +95,6 @@ macro_rules! format {
}

mod prefix;
mod prefix_map;

/// Constant byte length of `XorName`.
pub const XOR_NAME_LEN: usize = 32;
Expand Down Expand Up @@ -155,7 +153,7 @@ impl XorName {
/// Returns a copy of `self`, with the `i`-th bit set to `bit`.
///
/// If `i` exceeds the number of bits in `self`, an unmodified copy of `self` is returned.
fn with_bit(mut self, i: u8, bit: bool) -> Self {
pub fn with_bit(mut self, i: u8, bit: bool) -> Self {
if i as usize >= XOR_NAME_LEN * 8 {
return self;
}
Expand Down
311 changes: 0 additions & 311 deletions src/prefix_map.rs

This file was deleted.

0 comments on commit efa63e2

Please sign in to comment.