diff --git a/bitpacker/Cargo.toml b/bitpacker/Cargo.toml index e116e3b6d..7f2ff9588 100644 --- a/bitpacker/Cargo.toml +++ b/bitpacker/Cargo.toml @@ -11,13 +11,8 @@ keywords = [] documentation = "https://docs.rs/tantivy-bitpacker/latest/tantivy_bitpacker" homepage = "https://github.com/quickwit-oss/tantivy" -[features] -default = ["pg17"] -pg17 = ["pgrx/pg17"] - [dependencies] bitpacking = { version = "0.9.2", default-features = false, features = ["bitpacker1x"] } -pgrx = "0.12.7" [dev-dependencies] rand = "0.8" diff --git a/bitpacker/src/bitpacker.rs b/bitpacker/src/bitpacker.rs index b3fb672ed..c8ea27593 100644 --- a/bitpacker/src/bitpacker.rs +++ b/bitpacker/src/bitpacker.rs @@ -114,10 +114,6 @@ impl BitUnpacker { fn get_slow_path(&self, addr: usize, bit_shift: u32, data: &[u8]) -> u64 { let mut bytes: [u8; 8] = [0u8; 8]; - if addr > data.len() { - eprintln!("addr: {}, data.len(): {} tid: {}", addr, data.len(), unsafe { pgrx::pg_sys::GetCurrentTransactionId() }); - } - let available_bytes = data.len() - addr; // This function is meant to only be called if we did not have 8 bytes to load. debug_assert!(available_bytes < 8);