Skip to content

Commit b71f83c

Browse files
committed
fix: scanner.c warning
1 parent c4a8ad5 commit b71f83c

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/scanner.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,6 @@ static uint8_t consume_chars(TSLexer *lexer, char c) {
2626
return count;
2727
}
2828

29-
static uint32_t consume_until(TSLexer *lexer, char c) {
30-
uint32_t count = 0;
31-
while (lexer->lookahead != c && !eof) {
32-
adv;
33-
count++;
34-
}
35-
return count;
36-
}
37-
3829
static void skip_whitespace(TSLexer *lexer) {
3930
while (iswspace(lexer->lookahead) && !eof) {
4031
skip;
@@ -94,11 +85,8 @@ static bool scan_raw_string_begin(TSLexer *lexer, Scanner *s) {
9485
}
9586

9687
static bool scan_raw_string_content(TSLexer *lexer, Scanner *s) {
97-
uint32_t len = 0;
9888
while (!eof) {
99-
uint32_t num = consume_until(lexer, '\'');
10089
lexer->mark_end(lexer);
101-
len += num;
10290
adv;
10391
uint8_t level = consume_chars(lexer, '#');
10492
if (level == s->level) {

0 commit comments

Comments
 (0)