From d145785e4e32e92fcbcfa075cfee885110a59637 Mon Sep 17 00:00:00 2001 From: Mark Wallace Date: Sat, 25 Jun 2016 17:12:48 +0800 Subject: [PATCH] [matcher] remove unused function --- src/matcher.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/matcher.rs b/src/matcher.rs index ff044505..dd8635eb 100644 --- a/src/matcher.rs +++ b/src/matcher.rs @@ -34,14 +34,6 @@ impl Matcher { } } - fn match_str(&self, item: &str) -> bool { - if self.query == "" { - return true; - } - - item.starts_with(&self.query) - } - fn match_item(&self, index: usize, item: &str) -> Option { //let matched_result = score::compute_match_length(item, &self.query); let matched_result = score::fuzzy_match(item, &self.query);