Delete token.Int() (#312)

Not used anywhere.
This commit is contained in:
Thomas Pelletier
2019-10-21 14:01:10 -04:00
committed by GitHub
parent bef0f57967
commit e95df67ba3
-9
View File
@@ -2,7 +2,6 @@ package toml
import (
"fmt"
"strconv"
"unicode"
)
@@ -95,14 +94,6 @@ func (tt tokenType) String() string {
return "Unknown"
}
func (t token) Int() int {
if result, err := strconv.Atoi(t.val); err != nil {
panic(err)
} else {
return result
}
}
func (t token) String() string {
switch t.typ {
case tokenEOF: