Skip to content

Commit c5a7978

Browse files
committed
Drop Requires
Removes StatsBase support.
1 parent 4e340ac commit c5a7978

File tree

6 files changed

+9
-130
lines changed

6 files changed

+9
-130
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ version = "0.5.10"
55
[deps]
66
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
77
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
8-
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
8+
StaticArraysCore = "1e83bf80-4336-4d27-bf5d-d5a4f845583c"
99
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
1010
UnsafeArrays = "c4a57d5a-5b31-53a6-b365-19f8c011fbd6"
1111

1212
[compat]
1313
Adapt = "1, 2, 3"
1414
ChainRulesCore = "1"
15-
Requires = "0.5, 1"
15+
StaticArraysCore = "1"
1616
UnsafeArrays = "1"
1717
julia = "1.6"
1818

src/ArraysOfArrays.jl

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,16 @@ ArraysOfArrays provides two different types of nested arrays:
1414
module ArraysOfArrays
1515

1616
using Adapt
17-
using Requires
1817
using Statistics
1918
using UnsafeArrays
2019
using ChainRulesCore
2120

21+
import StaticArraysCore
22+
2223
include("util.jl")
2324
include("functions.jl")
2425
include("array_of_similar_arrays.jl")
2526
include("vector_of_arrays.jl")
26-
27-
28-
function __init__()
29-
@require StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" include("staticarrays_support.jl")
30-
@require StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91" include("statsbase_support.jl")
31-
end
32-
27+
include("arrays_of_static_arrays.jl")
3328

3429
end # module
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# This file is a part of ArraysOfArrays.jl, licensed under the MIT License (MIT).
22

33

4-
@inline flatview(A::AbstractArray{SA,N}) where {S,T,M,N,SA<:StaticArrays.StaticArray{S,T,M}} =
4+
@inline flatview(A::AbstractArray{SA,N}) where {S,T,M,N,SA<:StaticArraysCore.StaticArray{S,T,M}} =
55
reshape(reinterpret(T, A), size(SA)..., size(A)...)
66

77

8-
@inline function nestedview(A::AbstractArray{T}, SA::Type{StaticArrays.SVector{S,T}}) where {T,S}
8+
@inline function nestedview(A::AbstractArray{T}, SA::Type{StaticArraysCore.SVector{S,T}}) where {T,S}
99
size_A = size(A)
1010
size_A[1] == S || throw(DimensionMismatch("Length $S of static vector type does not match first dimension of array of size $size_A"))
1111
reshape(reinterpret(SA, A), _tail(size_A)...)
1212
end
1313

14-
@inline nestedview(A::AbstractArray{T}, ::Type{StaticArrays.SVector{S}}) where {T,S} =
15-
nestedview(A, StaticArrays.SVector{S,T})
14+
@inline nestedview(A::AbstractArray{T}, ::Type{StaticArraysCore.SVector{S}}) where {T,S} =
15+
nestedview(A, StaticArraysCore.SVector{S,T})

src/statsbase_support.jl

Lines changed: 0 additions & 20 deletions
This file was deleted.

test/runtests.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@ Test.@testset "Package ArraysOfArrays" begin
66
include("functions.jl")
77
include("array_of_similar_arrays.jl")
88
include("vector_of_arrays.jl")
9-
include("test_statsbase_support.jl")
109
end

test/test_statsbase_support.jl

Lines changed: 0 additions & 95 deletions
This file was deleted.

0 commit comments

Comments
 (0)