Skip to content

Commit 93da53e

Browse files
committed
Remove the dependency on Compat
It's a post 1.0 world!
1 parent 4a92a7f commit 93da53e

File tree

5 files changed

+4
-7
lines changed

5 files changed

+4
-7
lines changed

Project.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@ uuid = "39de3d68-74b9-583c-8d2d-e117c070f3a9"
33
version = "0.3.0"
44

55
[deps]
6-
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
76
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
87
IntervalSets = "8197267c-284f-5f27-9208-e0e47529a953"
98
IterTools = "c8e1da08-722c-5040-9ed9-7db0dc04731e"
109
RangeArrays = "b3c3ace0-ae52-54e7-9d0b-2c1406fd6b9d"
1110

1211
[compat]
13-
Compat = "≥ 0.61.0"
1412
IntervalSets = "≥ 0.1.0"
1513
Unitful = "≥ 0.2.6"
1614
julia = "≥ 0.7.0"

docs/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
44
Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"
55

66
[compat]
7-
Documenter = "~0.19"
7+
Documenter = "~0.22"
88
Unitful = "≥ 0.2.6"

src/AxisArrays.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ using Base: tail
66
import Base.Iterators: repeated
77
using RangeArrays, IntervalSets
88
using IterTools
9-
using Compat
109
using Dates
1110

1211
function axes end

src/core.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ end
280280
function axisdim(::Type{AxisArray{T,N,D,Ax}}, ::Type{<:Axis{name,S} where S}) where {T,N,D,Ax,name}
281281
isa(name, Int) && return name <= N ? name : error("axis $name greater than array dimensionality $N")
282282
names = axisnames(Ax)
283-
idx = Compat.findfirst(isequal(name), names)
283+
idx = findfirst(isequal(name), names)
284284
idx === nothing && error("axis $name not found in array axes $names")
285285
idx
286286
end

src/indexing.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,13 +286,13 @@ end
286286

287287
# Categorical axes may be indexed by their elements
288288
function axisindexes(::Type{Categorical}, ax::AbstractVector, idx)
289-
i = Compat.findfirst(isequal(idx), ax)
289+
i = findfirst(isequal(idx), ax)
290290
i === nothing && throw(ArgumentError("index $idx not found"))
291291
i
292292
end
293293
function axisindexes(::Type{Categorical}, ax::AbstractVector, idx::Value)
294294
val = idx.val
295-
i = Compat.findfirst(isequal(val), ax)
295+
i = findfirst(isequal(val), ax)
296296
i === nothing && throw(ArgumentError("index $val not found"))
297297
i
298298
end

0 commit comments

Comments
 (0)