Skip to content

Commit d99c4a3

Browse files
committed
Remove NewSU2Irrep findindex and getindex implementation to test fallback
1 parent 7a99cbc commit d99c4a3

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

test/newsectors.jl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,4 @@ end
7575
Base.hash(s::NewSU2Irrep, h::UInt) = hash(s.j, h)
7676
Base.isless(s1::NewSU2Irrep, s2::NewSU2Irrep) = isless(s1.j, s2.j)
7777

78-
function Base.getindex(::SectorValues{NewSU2Irrep}, i::Int)
79-
return 1 <= i ? NewSU2Irrep(half(i - 1)) : throw(BoundsError(values(NewSU2Irrep), i))
80-
end
81-
TensorKitSectors.findindex(::SectorValues{NewSU2Irrep}, s::NewSU2Irrep) = twice(s.j) + 1
82-
8378
end # module NewSectors

0 commit comments

Comments
 (0)