Skip to content

Commit

Permalink
remove unused compat entry
Browse files Browse the repository at this point in the history
  • Loading branch information
lkdvos committed Dec 19, 2024
1 parent 6112b35 commit 1d1954f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
3 changes: 2 additions & 1 deletion src/TensorKit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ import TensorKitSectors: dim, BraidingStyle, FusionStyle, ⊠, ⊗
import TensorKitSectors: dual, type_repr
import TensorKitSectors: twist

using Base: @boundscheck, @propagate_inbounds, OneTo, tail, front,
using Base: @boundscheck, @propagate_inbounds, @constprop,
OneTo, tail, front,
tuple_type_head, tuple_type_tail, tuple_type_cons,
SizeUnknown, HasLength, HasShape, IsInfinite, EltypeUnknown, HasEltype
using Base.Iterators: product, filter
Expand Down
9 changes: 0 additions & 9 deletions src/auxiliary/auxiliary.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,6 @@ end
@noinline _boundserror(P, i) = throw(BoundsError(P, i))
@noinline _nontrivialspaceerror(P, i) = throw(ArgumentError(lazy"Attempting to remove a non-trivial space $(P[i])"))

# Compat implementation:
@static if VERSION < v"1.7"
macro constprop(setting, ex)
return esc(ex)
end
else
using Base: @constprop
end

const VecOrNumber{T<:Number} = Union{DenseVector{T},T}

"""
Expand Down

0 comments on commit 1d1954f

Please sign in to comment.