From 6261aa8303c08ddce0827e0f1094c3c5b879d95e Mon Sep 17 00:00:00 2001 From: Philip Kannegaard Hayes Date: Thu, 14 Nov 2024 16:54:15 -0800 Subject: [PATCH] clippy: "oldcpu" feature doesn't exist anymore. remove deadcode. --- src/lib.rs | 6 ------ src/new_index/db.rs | 3 --- 2 files changed, 9 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 9dbc58153..834758a96 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,11 +1,5 @@ #![recursion_limit = "1024"] -// See https://github.com/romanz/electrs/issues/193 & https://github.com/rust-rocksdb/rust-rocksdb/issues/327 -#[cfg(not(feature = "oldcpu"))] -extern crate rocksdb; -#[cfg(feature = "oldcpu")] -extern crate rocksdb_oldcpu as rocksdb; - #[macro_use] extern crate clap; #[macro_use] diff --git a/src/new_index/db.rs b/src/new_index/db.rs index b6617d425..20db12f4c 100644 --- a/src/new_index/db.rs +++ b/src/new_index/db.rs @@ -163,10 +163,7 @@ impl DB { rows.sort_unstable_by(|a, b| a.key.cmp(&b.key)); let mut batch = rocksdb::WriteBatch::default(); for row in rows { - #[cfg(not(feature = "oldcpu"))] batch.put(&row.key, &row.value); - #[cfg(feature = "oldcpu")] - batch.put(&row.key, &row.value).unwrap(); } let do_flush = match flush { DBFlush::Enable => true,