Skip to content

Commit

Permalink
Delete function _coeff by merging the lines back into the function …
Browse files Browse the repository at this point in the history
…`coeff`.
  • Loading branch information
zengmao committed Aug 26, 2024
1 parent db048a0 commit e658d7e
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e658d7e

Please sign in to comment.