From dabcec0e388c7e69c043c9ea1081e569e1337e8b Mon Sep 17 00:00:00 2001 From: foxyriver Date: Sat, 14 Jul 2018 15:56:16 +0800 Subject: [PATCH] splitRE is never be referenced --- staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go b/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go index 6875e6a0f61..b155a62a45a 100644 --- a/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go +++ b/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go @@ -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")