Skip to content

Commit d087786

Browse files
fix: remove old edge case in simplify_div
1 parent 17901eb commit d087786

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/polyform.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,6 @@ function safe_gcd(p1::Union{PolyVarT, PolynomialT}, p2::Union{PolyVarT, Polynomi
192192
end
193193

194194
function simplify_div(num::BasicSymbolic{T}, den::BasicSymbolic{T}) where {T <: SymVariant}
195-
isconst(num) && return num, den
196-
isconst(den) && return num, den
197195
poly_to_bs = Dict{PolyVarT, BasicSymbolic{T}}()
198196
bs_to_poly = Dict{BasicSymbolic{T}, PolyVarT}()
199197
partial_poly1 = to_poly!(poly_to_bs, bs_to_poly, num, false)

0 commit comments

Comments
 (0)