Remove unused parameter from find_next_newline() function in lib/error.c
@@ -170,10 +170,7 @@ static const char* find_last_newline (
// Finds the next newline in the original source buffer from a given byte
// location. Returns a character pointer to that newline, or a pointer to the
// terminating null byte if this is the last line.
-static const char* find_next_newline (
- const char* original_text,
- const char* error_location
-) {
+static const char* find_next_newline(const char* error_location) {
const char* c = error_location;
for (; *c && *c != '\n'; ++c)
;
@@ -287,7 +284,7 @@ void gumbo_caret_diagnostic_to_string (
gumbo_error_to_string(error, output);
const char* line_start = find_last_newline(source_text, error->original_text);
- const char* line_end = find_next_newline(source_text, error->original_text);
+ const char* line_end = find_next_newline(error->original_text);
GumboStringPiece original_line;
original_line.data = line_start;
original_line.length = line_end - line_start;
