summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hawthorn <john.hawthorn@gmail.com>2014-09-13 23:43:40 -0700
committerJohn Hawthorn <john.hawthorn@gmail.com>2014-09-14 20:53:52 -0700
commit12b489b79a6b7173a0892ffd9a22dad02b8c7929 (patch)
tree1ab93d734d7102402a087ea3dfcf87fcd9fabd4e
parent702801fa857a5de60911cbe3440dc949d060b448 (diff)
Remove unecessary has_match test
-rw-r--r--match.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/match.c b/match.c
index 26151db..125106d 100644
--- a/match.c
+++ b/match.c
@@ -172,8 +172,6 @@ double calculate_score(const char *needle, const char *haystack, size_t *positio
double match_positions(const char *needle, const char *haystack, size_t *positions){
if(!*needle){
return SCORE_MAX;
- }else if(!has_match(needle, haystack)){
- return SCORE_MIN;
}else if(!strcasecmp(needle, haystack)){
if(positions){
int n = strlen(needle);