Skip to content

Commit dee4048

Browse files
committed
remove unnecessary base method override
1 parent 29ac378 commit dee4048

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/sampling.jl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,13 @@ Sampler(RNG::Type{<:AbstractRNG}, d::Union{UniformWrap,UniformType}, n::Repetiti
4444

4545
## floats
4646

47-
### override def from Random
48-
49-
Sampler(RNG::Type{<:AbstractRNG}, ::Type{T}, n::Repetition) where {T<:AbstractFloat} =
50-
Sampler(RNG, CloseOpen01(T), n)
47+
### fall-back on Random definitions
5148

5249
for CO in (:CloseOpen01, :CloseOpen12)
5350
@eval Sampler(::Type{<:AbstractRNG}, I::$CO{BigFloat}, ::Repetition) =
5451
Random.SamplerBigFloat{Random.$CO{BigFloat}}(precision(BigFloat))
5552
end
5653

57-
### fall-back on Random definitions
58-
5954
rand(r::AbstractRNG, ::SamplerTrivial{CloseOpen01{T}}) where {T} =
6055
rand(r, SamplerTrivial(Random.CloseOpen01{T}()))
6156

0 commit comments

Comments
 (0)