From a92d937f5a029abd0f4466543b16d3365fe57702 Mon Sep 17 00:00:00 2001 From: odow Date: Wed, 6 Nov 2024 15:57:09 +1300 Subject: [PATCH] [Containers] remove IndexAnyCartesian --- src/Containers/Containers.jl | 4 ---- src/Containers/DenseAxisArray.jl | 4 ---- 2 files changed, 8 deletions(-) diff --git a/src/Containers/Containers.jl b/src/Containers/Containers.jl index 3992d22c73e..ec000c09df1 100644 --- a/src/Containers/Containers.jl +++ b/src/Containers/Containers.jl @@ -19,10 +19,6 @@ module Containers import OrderedCollections -# Arbitrary typed indices. Linear indexing not supported. -struct IndexAnyCartesian <: Base.IndexStyle end -Base.IndexStyle(::IndexAnyCartesian, ::IndexAnyCartesian) = IndexAnyCartesian() - export DenseAxisArray, SparseAxisArray include("DenseAxisArray.jl") diff --git a/src/Containers/DenseAxisArray.jl b/src/Containers/DenseAxisArray.jl index c5866f44f10..0e421cd36c6 100644 --- a/src/Containers/DenseAxisArray.jl +++ b/src/Containers/DenseAxisArray.jl @@ -448,10 +448,6 @@ function Base.setindex!( return end -function Base.IndexStyle(::Type{DenseAxisArray{T,N,Ax}}) where {T,N,Ax} - return IndexAnyCartesian() -end - function Base.setindex!( A::DenseAxisArray{T,N}, value::DenseAxisArray{T,N},