Skip to content

Commit 4e24dad

Browse files
committed
Drop old deprecations and restore precompilation
1 parent 9b699ae commit 4e24dad

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

Project.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ColorVectorSpace"
22
uuid = "c3611d14-8923-5661-9e6a-0046d554d3a4"
3-
version = "0.8.5"
3+
version = "1.0.0"
44

55
[deps]
66
ColorTypes = "3da002f7-5984-5a60-b8a6-cbb66c0b333f"
@@ -9,15 +9,13 @@ FixedPointNumbers = "53c48c17-4a7d-5ca2-90c5-79b7896eea93"
99
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1010
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
1111
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
12-
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
1312
TensorCore = "62fd8b95-f654-4bbd-a8a5-9c27f68ccd50"
1413

1514
[compat]
1615
ColorTypes = "0.8, 0.9, 0.10"
1716
Colors = "0.9, 0.10, 0.11, 0.12"
1817
FixedPointNumbers = "0.6, 0.7, 0.8"
1918
SpecialFunctions = "0.7, 0.8, 0.9, 0.10"
20-
StatsBase = "0.28, 0.29, 0.30, 0.31, 0.32, 0.33"
2119
TensorCore = "0.1"
2220
julia = "1"
2321

src/ColorVectorSpace.jl

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -435,15 +435,9 @@ end
435435

436436
## Precompilation
437437

438-
# include("precompile.jl")
439-
# _precompile_()
440-
441-
## Deprecations
442-
443-
## From 2020-Mar-17
444-
# Since ImageContrastAdjustment is now doing its own binning, I think this can be safely deprecated and we can eliminate
445-
# the dependency on StatsBase.
446-
import StatsBase: histrange
447-
@deprecate histrange(v::AbstractArray{Gray{T}}, n::Integer) where {T} histrange(convert(Array{Float32}, map(gray, v)), n, :right)
438+
if Base.VERSION >= v"1.4.2"
439+
include("precompile.jl")
440+
_precompile_()
441+
end
448442

449443
end

0 commit comments

Comments
 (0)