diff options
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); } |