Skip to content

Commit

Permalink
remove compare function from FFI
Browse files Browse the repository at this point in the history
  • Loading branch information
ctb committed Feb 8, 2020
1 parent 7ef1649 commit f03796e
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/core/src/ffi/minhash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -522,22 +522,6 @@ unsafe fn kmerminhash_intersection(ptr: *mut KmerMinHash, other: *const KmerMinH
}
}

ffi_fn! {
unsafe fn kmerminhash_compare(ptr: *mut KmerMinHash, other: *const KmerMinHash, downsample: bool)
-> Result<f64> {
let mh = {
assert!(!ptr.is_null());
&mut *ptr
};
let other_mh = {
assert!(!other.is_null());
&*other
};

// call similarity directly, with ignore_abundance=True
mh.similarity(other_mh, true, downsample)
}
}
ffi_fn! {
unsafe fn kmerminhash_jaccard(ptr: *mut KmerMinHash, other: *const KmerMinHash)
-> Result<f64> {
Expand Down

0 comments on commit f03796e

Please sign in to comment.