remove all remaining warnings when build nim (with -d:nimHasLibFFI) (#13084)
* cleanup deprecations in evalffi + elsewhere * remove dead code getOrdValue64
This commit is contained in:
parent
852170cc78
commit
3f78873898
3 changed files with 7 additions and 14 deletions
|
|
@ -106,13 +106,6 @@ proc getOrdValue*(n: PNode; onError = high(Int128)): Int128 =
|
|||
# should therefore really be revisited.
|
||||
onError
|
||||
|
||||
proc getOrdValue64*(n: PNode): BiggestInt {.deprecated: "use getOrdvalue".} =
|
||||
case n.kind
|
||||
of nkCharLit..nkUInt64Lit: n.intVal
|
||||
of nkNilLit: 0
|
||||
of nkHiddenStdConv: getOrdValue64(n[1])
|
||||
else: high(BiggestInt)
|
||||
|
||||
proc getFloatValue*(n: PNode): BiggestFloat =
|
||||
case n.kind
|
||||
of nkFloatLiterals: n.floatVal
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue