diff options
author | John Hawthorn <john.hawthorn@gmail.com> | 2016-06-08 17:37:38 -0700 |
---|---|---|
committer | John Hawthorn <john.hawthorn@gmail.com> | 2016-06-08 17:40:00 -0700 |
commit | 734a374a03acc1a63ea43107f5bdcda465efaf34 (patch) | |
tree | a02188159217360c9177f6d3e2ee67bad63f97e5 /src/match.c | |
parent | 33d04f141241382b8f0e5bd382a9b1764063aed6 (diff) |
Remove calculate_score (same as match_positions)
Diffstat (limited to 'src/match.c')
-rw-r--r-- | src/match.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/match.c b/src/match.c index 61b9a1d..dac4b89 100644 --- a/src/match.c +++ b/src/match.c @@ -55,7 +55,7 @@ void mat_print(score_t *mat, char name, const char *needle, const char *haystack } #endif -score_t calculate_score(const char *needle, const char *haystack, size_t *positions) { +score_t match_positions(const char *needle, const char *haystack, size_t *positions) { if (!*needle) return SCORE_MIN; @@ -174,10 +174,6 @@ score_t calculate_score(const char *needle, const char *haystack, size_t *positi return M[n - 1][m - 1]; } -score_t match_positions(const char *needle, const char *haystack, size_t *positions) { - return calculate_score(needle, haystack, positions); -} - score_t match(const char *needle, const char *haystack) { return match_positions(needle, haystack, NULL); } |