Skip to content

Commit 70e78cc

Browse files
authored
vrepl: cleanup in vrepl.v (#21834)
1 parent 1229ccf commit 70e78cc

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

cmd/tools/vrepl.v

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,6 @@ const possible_statement_patterns = [
5454
'#include ',
5555
'for ',
5656
'or ',
57-
'insert(',
58-
'delete(',
59-
'prepend(',
60-
'sort(',
61-
'clear(',
62-
'trim(',
6357
' as ',
6458
]
6559

@@ -508,9 +502,7 @@ fn run_repl(workdir string, vrepl_prefix string) int {
508502
r.lines << r.line
509503
}
510504
} else {
511-
for r.temp_lines.len > 0 {
512-
r.temp_lines.delete(0)
513-
}
505+
r.temp_lines.clear()
514506
}
515507
if r.is_pin {
516508
r.pin()

0 commit comments

Comments
 (0)