diff options
Diffstat (limited to 'common.go')
| -rw-r--r-- | common.go | 20 |
1 files changed, 0 insertions, 20 deletions
@@ -1,8 +1,6 @@ package repolist import ( - "unicode" - "go.wit.com/gui" "go.wit.com/lib/gui/repostatus" "go.wit.com/log" @@ -178,21 +176,3 @@ func (rl *RepoList) TotalGo() int { } return count } - -func trimNonNumericFromStart(s string) string { - for i, r := range s { - if unicode.IsDigit(r) { - return s[i:] - } - } - return "" -} - -func ValidDebianPackageVersion(v string) string { - newv := trimNonNumericFromStart(v) - if newv == "" { - newv = "0.0" - } - log.Info("ValidDebianPackageVersion:", newv) - return newv -} |
