helpers: Remove unused arg
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 1 Mar 2017 22:49:24 +0000 (23:49 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 1 Mar 2017 22:49:24 +0000 (23:49 +0100)
helpers/hugo.go

index 1853fc4d72aadcc7248ab61ded55cc7fe9e432f1..b90ef42a604408331ac826f608c7dcd5d5c86030 100644 (file)
@@ -76,15 +76,15 @@ func CompareVersion(version interface{}) int {
 func compareVersions(inVersion float32, inPatchVersion int, in interface{}) int {
        switch d := in.(type) {
        case float64:
-               return compareFloatVersions(inVersion, inPatchVersion, float32(d))
+               return compareFloatVersions(inVersion, float32(d))
        case float32:
-               return compareFloatVersions(inVersion, inPatchVersion, d)
+               return compareFloatVersions(inVersion, d)
        case int:
-               return compareFloatVersions(inVersion, inPatchVersion, float32(d))
+               return compareFloatVersions(inVersion, float32(d))
        case int32:
-               return compareFloatVersions(inVersion, inPatchVersion, float32(d))
+               return compareFloatVersions(inVersion, float32(d))
        case int64:
-               return compareFloatVersions(inVersion, inPatchVersion, float32(d))
+               return compareFloatVersions(inVersion, float32(d))
        default:
                s, err := cast.ToStringE(in)
                if err != nil {
@@ -116,7 +116,7 @@ func compareVersions(inVersion float32, inPatchVersion int, in interface{}) int
        }
 }
 
-func compareFloatVersions(version float32, patchVersion int, v float32) int {
+func compareFloatVersions(version float32, v float32) int {
        if v == version {
                return 0
        }