From e658d7ed8541a34492426bd943471b3962b27715 Mon Sep 17 00:00:00 2001 From: Mao Zeng Date: Mon, 26 Aug 2024 13:21:33 +0100 Subject: [PATCH] Delete function `_coeff` by merging the lines back into the function `coeff`. --- src/utils.jl | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/utils.jl b/src/utils.jl index 61458dc9e..7628e1394 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -336,15 +336,6 @@ function coeff(p, sym=nothing) sym = nothing end - return _coeff(p, sym) -end - -""" - _coeff(p, sym) - -Function used internally by `coeff(p, sym)`, after the latter function performs some initial steps and re-assigns `p, sym = value(p), value(sym)` -""" -function _coeff(p, sym) if issym(p) || isterm(p) sym === nothing ? 0 : Int(isequal(p, sym)) elseif ispow(p)