Skip to content

Commit f9cfd12

Browse files
authored
Remove duplicate deprecation check (#770)
The same check is done below in the function.
1 parent 071d10a commit f9cfd12

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/scalarstats.jl

-5
Original file line numberDiff line numberDiff line change
@@ -532,11 +532,6 @@ If `normalize` is set to `true`, the MAD is multiplied by
532532
of the standard deviation under the assumption that the data is normally distributed.
533533
"""
534534
function mad(x; center=nothing, normalize::Union{Bool, Nothing}=nothing, constant=nothing)
535-
if normalize === nothing
536-
Base.depwarn("the `normalize` keyword argument will be false by default in future releases: set it explicitly to silence this deprecation", :mad)
537-
normalize = true
538-
end
539-
540535
isempty(x) && throw(ArgumentError("mad is not defined for empty arrays"))
541536
T = eltype(x)
542537
# Knowing the eltype allows allocating a single array able to hold both original values

0 commit comments

Comments
 (0)