Skip to content

Commit

Permalink
clippy: "oldcpu" feature doesn't exist anymore. remove deadcode.
Browse files Browse the repository at this point in the history
  • Loading branch information
phlip9 authored and shesek committed Nov 23, 2024
1 parent 1a70de9 commit 6261aa8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
6 changes: 0 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
3 changes: 0 additions & 3 deletions src/new_index/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6261aa8

Please sign in to comment.