mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-10 06:54:16 +00:00
Remove Deprecated oids.oidsToString (#19519)
* Remove deprecated oids.oidToString * Remove deprecated oids.oidToString
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user