Browse code

Remove calculate_score (same as match_positions)

John Hawthorn authored on 09/06/2016 00:37:38
Showing 1 changed files

... ...
@@ -55,7 +55,7 @@ void mat_print(score_t *mat, char name, const char *needle, const char *haystack
55 55
 }
56 56
 #endif
57 57
 
58
-score_t calculate_score(const char *needle, const char *haystack, size_t *positions) {
58
+score_t match_positions(const char *needle, const char *haystack, size_t *positions) {
59 59
 	if (!*needle)
60 60
 		return SCORE_MIN;
61 61
 
... ...
@@ -174,10 +174,6 @@ score_t calculate_score(const char *needle, const char *haystack, size_t *positi
174 174
 	return M[n - 1][m - 1];
175 175
 }
176 176
 
177
-score_t match_positions(const char *needle, const char *haystack, size_t *positions) {
178
-	return calculate_score(needle, haystack, positions);
179
-}
180
-
181 177
 score_t match(const char *needle, const char *haystack) {
182 178
 	return match_positions(needle, haystack, NULL);
183 179
 }