toml: remove unused enum (#12304)
parent
9a3967bd7d
commit
c526752419
|
@ -22,7 +22,6 @@ mut:
|
||||||
col int // current column number (x coordinate)
|
col int // current column number (x coordinate)
|
||||||
line_nr int = 1 // current line number (y coordinate)
|
line_nr int = 1 // current line number (y coordinate)
|
||||||
pos int // current flat/index position in the `text` field
|
pos int // current flat/index position in the `text` field
|
||||||
mode Mode // sub-mode of the scanner
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// State is a read-only copy of the scanner's internal state.
|
// State is a read-only copy of the scanner's internal state.
|
||||||
|
@ -32,12 +31,6 @@ pub:
|
||||||
col int // current column number (x coordinate)
|
col int // current column number (x coordinate)
|
||||||
line_nr int = 1 // current line number (y coordinate)
|
line_nr int = 1 // current line number (y coordinate)
|
||||||
pos int // current flat/index position in the `text` field
|
pos int // current flat/index position in the `text` field
|
||||||
mode Mode // sub-mode of the scanner
|
|
||||||
}
|
|
||||||
|
|
||||||
enum Mode {
|
|
||||||
normal
|
|
||||||
inside_string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Config is used to configure a Scanner instance.
|
// Config is used to configure a Scanner instance.
|
||||||
|
@ -610,6 +603,5 @@ pub fn (s Scanner) state() State {
|
||||||
col: s.col
|
col: s.col
|
||||||
line_nr: s.line_nr
|
line_nr: s.line_nr
|
||||||
pos: s.pos
|
pos: s.pos
|
||||||
mode: s.mode
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue