Remove Deprecated oids.oidsToString (#19519)

* Remove deprecated oids.oidToString

* Remove deprecated oids.oidToString
This commit is contained in:
Juan Carlos
2022-02-14 00:09:21 -08:00
committed by GitHub
parent cda77c1520
commit 42eeab5fd1
2 changed files with 2 additions and 5 deletions

View File

@@ -39,6 +39,8 @@ becomes an alias for `addr`.
- Added `getIsoWeeksInYear` in `times` to return the number of weeks in an ISO week-based year.
- Added `std/oserrors` for OS error reporting. Added `std/envvars` for environment variables handling.
- Removed deprecated `oids.oidToString`.
- Changed mimedb to use an `OrderedTable` instead of `OrderedTableRef`, to use it in a const.

View File

@@ -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.