From 1d1954f40103abe0732413ed98b82b89ef1ac7a7 Mon Sep 17 00:00:00 2001 From: Lukas Devos Date: Thu, 19 Dec 2024 14:01:04 +0100 Subject: [PATCH] remove unused compat entry --- src/TensorKit.jl | 3 ++- src/auxiliary/auxiliary.jl | 9 --------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/TensorKit.jl b/src/TensorKit.jl index 3b103ea1..6882d10d 100644 --- a/src/TensorKit.jl +++ b/src/TensorKit.jl @@ -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 diff --git a/src/auxiliary/auxiliary.jl b/src/auxiliary/auxiliary.jl index 297fd3ab..bda29d55 100644 --- a/src/auxiliary/auxiliary.jl +++ b/src/auxiliary/auxiliary.jl @@ -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} """