diff options
author | John Hawthorn <john.hawthorn@gmail.com> | 2014-09-13 23:43:40 -0700 |
---|---|---|
committer | John Hawthorn <john.hawthorn@gmail.com> | 2014-09-14 20:53:52 -0700 |
commit | 12b489b79a6b7173a0892ffd9a22dad02b8c7929 (patch) | |
tree | 1ab93d734d7102402a087ea3dfcf87fcd9fabd4e | |
parent | 702801fa857a5de60911cbe3440dc949d060b448 (diff) |
Remove unecessary has_match test
-rw-r--r-- | match.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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); |