Skip to content

Commit 3a43627

Browse files
committed
Remove some unnecessary methods
1 parent 12be806 commit 3a43627

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/fixed_rational.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ end
5555
Base.iszero(x::FixedRational) = iszero(x.num)
5656
Base.isone(x::F) where {F<:FixedRational} = x.num == denom(F)
5757
Base.isinteger(x::F) where {F<:FixedRational} = iszero(x.num % denom(F))
58-
Base.convert(::Type{F}, x::Integer) where {F<:FixedRational} = unsafe_fixed_rational(x * denom(F), eltype(F), val_denom(F))
59-
Base.convert(::Type{F}, x::Rational) where {F<:FixedRational} = F(x)
6058
Base.convert(::Type{Rational{R}}, x::F) where {R,F<:FixedRational} = Rational{R}(x.num, denom(F))
6159
Base.convert(::Type{Rational}, x::F) where {F<:FixedRational} = Rational{eltype(F)}(x.num, denom(F))
6260
Base.convert(::Type{AF}, x::F) where {AF<:AbstractFloat,F<:FixedRational} = convert(AF, x.num) / convert(AF, denom(F))

0 commit comments

Comments
 (0)