Remove Deprecated oids.oidsToString (#19519)
* Remove deprecated oids.oidToString * Remove deprecated oids.oidToString
This commit is contained in:
parent
cda77c1520
commit
42eeab5fd1
2 changed files with 2 additions and 5 deletions
|
|
@ -67,11 +67,6 @@ template toStringImpl[T: string | cstring](result: var T, oid: Oid) =
|
|||
when T is cstring:
|
||||
result[N] = '\0'
|
||||
|
||||
proc oidToString*(oid: Oid, str: cstring) {.deprecated: "unsafe; use `$`".} =
|
||||
## Converts an oid to a string which must have space allocated for 25 elements.
|
||||
# work around a compiler bug:
|
||||
var str = str
|
||||
toStringImpl(str, oid)
|
||||
|
||||
proc `$`*(oid: Oid): string =
|
||||
## Converts an OID to a string.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue