Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/pkgsrc/pkgtools/pkglint/files/Attic/util.go,v rcsdiff: /ftp/cvs/cvsroot/pkgsrc/pkgtools/pkglint/files/Attic/util.go,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.1 retrieving revision 1.2 diff -u -p -r1.1 -r1.2 --- pkgsrc/pkgtools/pkglint/files/Attic/util.go 2015/11/25 13:29:07 1.1 +++ pkgsrc/pkgtools/pkglint/files/Attic/util.go 2015/12/05 08:54:08 1.2 @@ -21,13 +21,6 @@ var ( hasSuffix = strings.HasSuffix ) -func intMax(a, b int) int { - if a > b { - return a - } - return b -} - func ifelseStr(cond bool, a, b string) string { if cond { return a @@ -175,14 +168,6 @@ func dirExists(fname string) bool { return err == nil && st.Mode().IsDir() } -func stringset(s string) map[string]bool { - result := make(map[string]bool) - for _, m := range splitOnSpace(strings.TrimSpace(s)) { - result[m] = true - } - return result -} - var res = make(map[string]*regexp.Regexp) func regcomp(re string) *regexp.Regexp { @@ -282,13 +267,6 @@ func replacePrefix(ps *string, pm *[]str return false } -func nilToZero(pi *int) int { - if pi != nil { - return *pi - } - return 0 -} - // Useful in combination with regex.Find*Index func negToZero(i int) int { if i >= 0 {