diff options
Diffstat (limited to 'weed/util/parse.go')
| -rw-r--r-- | weed/util/parse.go | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/weed/util/parse.go b/weed/util/parse.go deleted file mode 100644 index 930da9522..000000000 --- a/weed/util/parse.go +++ /dev/null @@ -1,16 +0,0 @@ -package util - -import ( - "strconv" -) - -func ParseInt(text string, defaultValue int) int { - count, parseError := strconv.ParseUint(text, 10, 64) - if parseError != nil { - if len(text) > 0 { - return 0 - } - return defaultValue - } - return int(count) -} |
