Skip to content

Commit

Permalink
fix: remove unused var
Browse files Browse the repository at this point in the history
  • Loading branch information
JalonSolov committed Jan 26, 2024
1 parent 40e9512 commit 7d55322
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/wc/wc.v
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ fn get_count(chunk FileChunk, last_line_length u32) (Count, u32) {
mut count := Count{'', 0, 0, 0, 0, 0}
mut prev_char_is_space := chunk.prev_char_is_space
mut line_length := last_line_length
mut last_newline_pos := u32(0)

for b in chunk.buffer {
match b {
Expand All @@ -59,7 +58,6 @@ fn get_count(chunk FileChunk, last_line_length u32) (Count, u32) {
count.max_line_length = line_length
}
line_length = 0
last_newline_pos = line_length
}
space, carriage_return, vertical_tab, form_feed {
prev_char_is_space = true
Expand Down

0 comments on commit 7d55322

Please sign in to comment.