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
commit 42eeab5fd1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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.