remove ip_to_u128

This commit is contained in:
Pascal Seitz
2022-09-16 18:16:16 +08:00
parent a16b466460
commit 02599ebeb7
2 changed files with 0 additions and 10 deletions

View File

@@ -14,7 +14,6 @@ use std::{
cmp::Ordering,
collections::BTreeSet,
io::{self, Write},
net::{IpAddr, Ipv6Addr},
ops::RangeInclusive,
};
@@ -28,14 +27,6 @@ use crate::Column;
mod blank_range;
mod build_compact_space;
pub fn ip_to_u128(ip_addr: IpAddr) -> u128 {
let ip_addr_v6: Ipv6Addr = match ip_addr {
IpAddr::V4(v4) => v4.to_ipv6_mapped(),
IpAddr::V6(v6) => v6,
};
u128::from_be_bytes(ip_addr_v6.octets())
}
/// The cost per blank is quite hard actually, since blanks are delta encoded, the actual cost of
/// blanks depends on the number of blanks.
///

View File

@@ -30,7 +30,6 @@ mod serialize;
use self::bitpacked::BitpackedCodec;
use self::blockwise_linear::BlockwiseLinearCodec;
pub use self::column::{monotonic_map_column, Column, VecColumn};
pub use self::compact_space::ip_to_u128;
use self::linear::LinearCodec;
pub use self::monotonic_mapping::MonotonicallyMappableToU64;
pub use self::serialize::{