From c44b8041bedd304527445e6102898773b4206b82 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 23 Feb 2024 13:18:11 +0100 Subject: [PATCH] Remove dubious methods that convert floats to integer values (#1684) --- src/HeckeMiscInteger.jl | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/HeckeMiscInteger.jl b/src/HeckeMiscInteger.jl index d0622ce737..0afa634f6b 100644 --- a/src/HeckeMiscInteger.jl +++ b/src/HeckeMiscInteger.jl @@ -61,30 +61,6 @@ end #end -function *(a::ZZRingElem, b::BigFloat) - return BigInt(a) * b -end - -function *(a::BigFloat, b::ZZRingElem) - return BigInt(a) * b -end - -function *(a::ZZRingElem, b::Float64) - return BigInt(a) * b -end - -function *(b::Float64, a::ZZRingElem) - return BigInt(a) * b -end - -function *(a::QQFieldElem, b::Float64) - return Rational(a) * b -end - -function *(b::Float64, a::QQFieldElem) - return Rational(a) * b -end - function convert(R::Type{Rational{Base.GMP.BigInt}}, a::ZZRingElem) return R(BigInt(a)) end