Skip to content

Commit 346874f

Browse files
committed
remove unneeded methods from UniformWeights
getting rid of the 4 covarge misses to fix coverage degress.
1 parent b1491ee commit 346874f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/univariate.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,6 @@ UniformWeights(n) = UniformWeights{n}()
7676

7777
Base.sum(x::UniformWeights) = 1.
7878
Base.getindex{N}(x::UniformWeights{N}, i) = 1/N
79-
Base.length{N}(x::UniformWeights{N}) = N
80-
values{N}(x::UniformWeights{N}) = fill(x[1], N)
81-
eltype(x::UniformWeights) = eltype(x[1])
82-
isempty{N}(x::UniformWeights{N}) = N==0
8379

8480
typealias Weights Union{UniformWeights, RealVector, WeightVec}
8581

0 commit comments

Comments
 (0)