diff --git a/src/mstructures.jl b/src/mstructures.jl index c1cd0e9..1fab9d1 100644 --- a/src/mstructures.jl +++ b/src/mstructures.jl @@ -77,25 +77,6 @@ function MA.operate!(op::UnsafeAddMul, res, b, c, args::Vararg{Any, N}) where {N return res end -_aggregate_constants(constant, non_constant) = (constant, non_constant) - -function _aggregate_constants(constant, non_constant, α, args::Vararg{Any,N}) where {N} - return _aggregate_constants(constant * α, non_constant, args...) -end - -function _aggregate_constants(constant, non_constant, c::AbstractCoefficients, args::Vararg{Any,N}) where {N} - return _aggregate_constants(constant, (non_constant..., c), args...) -end - -function MA.operate!( - op::UnsafeAddMul, - mc::AbstractCoefficients, - args::Vararg{Any,N}, -) where {N} - constant, non_constant = _aggregate_constants(One(), tuple(), args...) - return operate_with_constant!(op, mc, constant, non_constant...) -end - struct DiracMStructure{Op} <: MultiplicativeStructure op::Op end