Skip to content

Commit

Permalink
remove unneeded method
Browse files Browse the repository at this point in the history
  • Loading branch information
ogauthe committed Jun 18, 2024
1 parent 2193a93 commit 9a04046
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions NDTensors/src/lib/GradedAxes/src/gradedunitrange.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ function Base.OrdinalRange{T,T}(a::GradedOneTo{<:LabelledInteger{T}}) where {T}
return unlabel_blocks(a)
end

# TODO: See if this is needed.
function Base.AbstractUnitRange{T}(a::GradedOneTo{<:LabelledInteger{T}}) where {T}
return unlabel_blocks(a)
end

# == is just a range comparison that ignores labels. Need dedicated function to check equality.
function gradedisequal(a1::AbstractUnitRange, a2::AbstractUnitRange)
return blockisequal(a1, a2) && (blocklabels(a1) == blocklabels(a2))
Expand Down

0 comments on commit 9a04046

Please sign in to comment.