Commit a634443
committed
fix(parser): remove unused ParseError type
ParseError and NewParseError were defined in internal/parser/types.go
but never raised by Parse() or splitAndClassify(), which always return
plain fmt.Errorf strings. No caller checked for ParseError via
errors.As or type assertions either.
The parser delegates to pglex tokenization which doesn't produce parse
errors, so the type had no path to being used. Remove the dead code.1 parent 78c2f2a commit a634443
1 file changed
Lines changed: 0 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | 4 | | |
7 | 5 | | |
8 | 6 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | 7 | | |
32 | 8 | | |
33 | 9 | | |
| |||
0 commit comments