Skip to content

Commit b98244e

Browse files
author
Michael Abbott
committed
drop Compat.jl
1 parent 00fe957 commit b98244e

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

Project.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
name = "AxisKeys"
22
uuid = "94b1ba4f-4ee9-5380-92f1-94cde586c3c5"
33
license = "MIT"
4-
version = "0.0.1"
4+
version = "0.0.2"
55

66
[deps]
7-
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
87
IntervalSets = "8197267c-284f-5f27-9208-e0e47529a953"
98
InvertedIndices = "41ab1584-1d38-5bbf-9106-f11c6c58b48f"
109
LazyStack = "1fad7336-0346-5a1a-a56f-a06ba010965b"
@@ -16,10 +15,9 @@ Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
1615

1716
[compat]
1817
BenchmarkTools = "0.5"
19-
Compat = "3.1"
2018
IntervalSets = "0.3, 0.4"
2119
InvertedIndices = "1.0"
22-
LazyStack = "0.0.7"
20+
LazyStack = "0.0.7, 0.0.8"
2321
NamedDims = "0.2.20"
2422
OffsetArrays = "0.10, 0.11, 1.0"
2523
Tables = "0.2, 1"

src/struct.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
using Base: @propagate_inbounds, OneTo, RefValue
22

3-
using Compat # 2.0 hasfield + 3.1 filter
4-
53
struct KeyedArray{T,N,AT,KT} <: AbstractArray{T,N}
64
data::AT
75
keys::KT
@@ -74,7 +72,7 @@ for (get_or_view, key_get, maybe_copy) in [
7472
raw_keys === () && return data # things like A[A .> 0]
7573

7674
new_keys = ntuple(ndims(data)) do d
77-
isnothing(raw_keys) && return axes(data, d)
75+
raw_keys === nothing && return axes(data, d)
7876
raw_keys[d]
7977
end
8078
KeyedArray(data, new_keys)

0 commit comments

Comments
 (0)