Skip to content

Commit c7f7595

Browse files
committed
clippy: "oldcpu" feature doesn't exist anymore. remove deadcode.
1 parent 1c29aff commit c7f7595

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

src/lib.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
#![recursion_limit = "1024"]
22

3-
// See https://github.com/romanz/electrs/issues/193 & https://github.com/rust-rocksdb/rust-rocksdb/issues/327
4-
#[cfg(not(feature = "oldcpu"))]
5-
extern crate rocksdb;
6-
#[cfg(feature = "oldcpu")]
7-
extern crate rocksdb_oldcpu as rocksdb;
8-
93
#[macro_use]
104
extern crate clap;
115
#[macro_use]

src/new_index/db.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,7 @@ impl DB {
163163
rows.sort_unstable_by(|a, b| a.key.cmp(&b.key));
164164
let mut batch = rocksdb::WriteBatch::default();
165165
for row in rows {
166-
#[cfg(not(feature = "oldcpu"))]
167166
batch.put(&row.key, &row.value);
168-
#[cfg(feature = "oldcpu")]
169-
batch.put(&row.key, &row.value).unwrap();
170167
}
171168
let do_flush = match flush {
172169
DBFlush::Enable => true,

0 commit comments

Comments
 (0)