Skip to content

Commit eac3538

Browse files
authored
Remove unused type parameter (#482)
* Remove unused type parameter * Fix format
1 parent 46fa287 commit eac3538

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "KernelFunctions"
22
uuid = "ec8451be-7e33-11e9-00cf-bbf324bd1392"
3-
version = "0.10.47"
3+
version = "0.10.48"
44

55
[deps]
66
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"

src/distances/sinus.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ Distances.parameters(d::Sinus) = d.r
1111

1212
Distances.result_type(::Sinus{T}, Ta::Type, Tb::Type) where {T} = promote_type(T, Ta, Tb)
1313

14-
@inline function Distances._evaluate(
15-
d::Sinus, a::AbstractVector, b::AbstractVector
16-
) where {T}
14+
@inline function Distances._evaluate(d::Sinus, a::AbstractVector, b::AbstractVector)
1715
@boundscheck if (length(a) != length(b)) || length(a) != length(d.r)
1816
throw(
1917
DimensionMismatch(

test/runtests.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ include("test_utils.jl")
148148
if GROUP == "" || GROUP == "Others"
149149
include("utils.jl")
150150

151+
@test isempty(detect_unbound_args(KernelFunctions))
152+
151153
@testset "distances" begin
152154
include("distances/pairwise.jl")
153155
include("distances/dotproduct.jl")

0 commit comments

Comments
 (0)