Skip to content

Commit 179c61c

Browse files
committed
Delete outdated definitions
1 parent a45c582 commit 179c61c

File tree

2 files changed

+0
-31
lines changed

2 files changed

+0
-31
lines changed

src/abstractblocksparsearray/wrappedabstractblocksparsearray.jl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,6 @@ function Base.to_indices(
4040
return @interface BlockSparseArrayInterface() to_indices(a, inds, I)
4141
end
4242

43-
# a[[Block(2), Block(1)], [Block(2), Block(1)]]
44-
function Base.to_indices(
45-
a::AnyAbstractBlockSparseArray, inds, I::Tuple{Vector{<:Block{1}},Vararg{Any}}
46-
)
47-
return @interface BlockSparseArrayInterface() to_indices(a, inds, I)
48-
end
49-
5043
# a[BlockVector([Block(2), Block(1)], [2]), BlockVector([Block(2), Block(1)], [2])]
5144
# a[BlockedVector([Block(2), Block(1)], [2]), BlockedVector([Block(2), Block(1)], [2])]
5245
function Base.to_indices(

src/blocksparsearrayinterface/blocksparsearrayinterface.jl

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -145,30 +145,6 @@ end
145145
return (inds[1][I[1]], to_indices(a, Base.tail(inds), Base.tail(I))...)
146146
end
147147

148-
# a[[Block(2), Block(1)], [Block(2), Block(1)]]
149-
@interface ::AbstractBlockSparseArrayInterface function Base.to_indices(
150-
a, inds, I::Tuple{Vector{<:Block{1}},Vararg{Any}}
151-
)
152-
return error("Not implemented.")
153-
end
154-
155-
# a[mortar([Block(1)[1:2], Block(2)[1:3]]), mortar([Block(1)[1:2], Block(2)[1:3]])]
156-
# a[[Block(1)[1:2], Block(2)[1:3]], [Block(1)[1:2], Block(2)[1:3]]]
157-
@interface ::AbstractBlockSparseArrayInterface function Base.to_indices(
158-
a, inds, I::Tuple{BlockVector{<:BlockIndex{1},<:Vector{<:BlockIndexRange{1}}},Vararg{Any}}
159-
)
160-
return error("Not implemented.")
161-
end
162-
163-
# a[BlockVector([Block(2), Block(1)], [2]), BlockVector([Block(2), Block(1)], [2])]
164-
# Permute and merge blocks.
165-
# TODO: This isn't merging blocks yet, that needs to be implemented that.
166-
@interface ::AbstractBlockSparseArrayInterface function Base.to_indices(
167-
a, inds, I::Tuple{AbstractBlockVector{<:Block{1}},Vararg{Any}}
168-
)
169-
return error("Not implemented.")
170-
end
171-
172148
# TODO: Need to implement this!
173149
function block_merge end
174150

0 commit comments

Comments
 (0)