From c52675241912173c9888483ad7410afdfd8ecc40 Mon Sep 17 00:00:00 2001 From: Larpon Date: Tue, 26 Oct 2021 15:58:58 +0200 Subject: [PATCH] toml: remove unused enum (#12304) --- vlib/toml/scanner/scanner.v | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/vlib/toml/scanner/scanner.v b/vlib/toml/scanner/scanner.v index 4196c68386..bbdf235982 100644 --- a/vlib/toml/scanner/scanner.v +++ b/vlib/toml/scanner/scanner.v @@ -19,25 +19,18 @@ pub: config Config text string // the input TOML text mut: - col int // current column number (x coordinate) + col int // current column number (x coordinate) line_nr int = 1 // current line number (y coordinate) - pos int // current flat/index position in the `text` field - mode Mode // sub-mode of the scanner + pos int // current flat/index position in the `text` field } // State is a read-only copy of the scanner's internal state. // See also `Scanner.state()`. pub struct State { pub: - col int // current column number (x coordinate) + col int // current column number (x coordinate) line_nr int = 1 // current line number (y coordinate) - pos int // current flat/index position in the `text` field - mode Mode // sub-mode of the scanner -} - -enum Mode { - normal - inside_string + pos int // current flat/index position in the `text` field } // Config is used to configure a Scanner instance. @@ -610,6 +603,5 @@ pub fn (s Scanner) state() State { col: s.col line_nr: s.line_nr pos: s.pos - mode: s.mode } }