splitRE is never be referenced

This commit is contained in:
foxyriver 2018-07-14 15:56:16 +08:00
parent af8a1dba68
commit dabcec0e38

View File

@ -21,7 +21,6 @@ import (
"errors"
"fmt"
"math/big"
"regexp"
"strconv"
"strings"
@ -137,9 +136,6 @@ const (
)
var (
// splitRE is used to get the various parts of a number.
splitRE = regexp.MustCompile(splitREString)
// Errors that could happen while parsing a string.
ErrFormatWrong = errors.New("quantities must match the regular expression '" + splitREString + "'")
ErrNumeric = errors.New("unable to parse numeric part of quantity")