Skip to content

Commit d927bdb

Browse files
committed
Remove unneeded function
1 parent f1ad20e commit d927bdb

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

src/FixedPointDecimals.jl

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ using Compat
3232
import Base: reinterpret, zero, one, abs, sign, ==, <, <=, +, -, /, *, div, rem, divrem,
3333
fld, mod, fldmod, fld1, mod1, fldmod1, isinteger, typemin, typemax,
3434
realmin, realmax, print, show, string, convert, parse, promote_rule, min, max,
35-
trunc, round, floor, ceil, eps, float, widemul, exp10
35+
trunc, round, floor, ceil, eps, float, widemul
3636

3737
import Base.Checked: checked_mul
3838

@@ -416,22 +416,6 @@ function max_exp10{T <: Integer}(::Type{T})
416416
exponent - 1
417417
end
418418

419-
"""
420-
exp10(::Type{FD{T, f}})
421-
422-
Compute `10^f` as an Integer without overflow. The resulting type will be an integer of type
423-
T or wider.
424-
"""
425-
@generated function exp10{T <: Integer, f}(::Type{FD{T, f}})
426-
P = T
427-
while P != BigInt && f > max_exp10(P)
428-
P = widen(P)
429-
end
430-
quote
431-
$(P(10)^f)
432-
end
433-
end
434-
435419
"""
436420
coefficient(::Type{FD{T, f}}) -> T
437421

0 commit comments

Comments
 (0)