Skip to content

Commit 6d50168

Browse files
committed
remove unused functions in benchmarks
1 parent 45f637c commit 6d50168

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

benches/benchmarks.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -183,16 +183,6 @@ fn big_16(c: &mut Criterion) {
183183
});
184184
}
185185

186-
fn memchr_finder() -> &'static memchr::memmem::Finder<'static> {
187-
static FINDER: OnceLock<memchr::memmem::Finder> = OnceLock::new();
188-
FINDER.get_or_init(|| memchr::memmem::Finder::new("xyzzy"))
189-
}
190-
191-
fn substring() -> &'static SubstringConst {
192-
static SUBSTRING: OnceLock<SubstringConst> = OnceLock::new();
193-
SUBSTRING.get_or_init(|| SubstringConst::new("xyzzy"))
194-
}
195-
196186
fn substr(c: &mut Criterion) {
197187
let mut haystack = prefix_string();
198188
haystack.push_str("xyzzy");

0 commit comments

Comments
 (0)