Skip to content

Commit df2aad7

Browse files
committed
remove copy
1 parent eabbf50 commit df2aad7

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

src/blockedtuple.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ abstract type AbstractBlockTuple end
1111
# Base interface
1212
Base.axes(bt::AbstractBlockTuple) = (blockedrange([blocklengths(bt)...]),)
1313

14-
Base.copy(bt::AbstractBlockTuple) = copy.(bt)
15-
1614
Base.deepcopy(bt::AbstractBlockTuple) = deepcopy.(bt)
1715

1816
Base.firstindex(::AbstractBlockTuple) = 1

test/test_blockedtuple.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ using TensorAlgebra: BlockedTuple
4141
bt = BlockedTuple((1,), (4, 2), (5, 3))
4242
@test Tuple(bt) == (1, 4, 2, 5, 3)
4343
@test blocklengths(bt) == (1, 2, 2)
44-
@test copy(bt) == bt
4544
@test deepcopy(bt) == bt
4645

4746
@test (@constinferred map(n -> n + 1, bt)) ==

0 commit comments

Comments
 (0)