diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-03-01 23:49:24 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-03-01 23:49:24 +0100 |
commit | 577522bd45078fef46655d38f3e831d1df6b2744 (patch) | |
tree | 5934dfab2d7b9bddd89fdb347d8b562cf7d55a91 | |
parent | 23f5b9ac4e1b4c79373f7dfd810b84a9d4b7baeb (diff) |
helpers: Remove unused arg
-rw-r--r-- | helpers/hugo.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/helpers/hugo.go b/helpers/hugo.go index 1853fc4d7..b90ef42a6 100644 --- a/helpers/hugo.go +++ b/helpers/hugo.go @@ -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 } |