Skip to content

Commit 42eeab5

Browse files
Remove Deprecated oids.oidsToString (#19519)
* Remove deprecated oids.oidToString * Remove deprecated oids.oidToString
1 parent cda77c1 commit 42eeab5

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ becomes an alias for `addr`.
3939
- Added `getIsoWeeksInYear` in `times` to return the number of weeks in an ISO week-based year.
4040

4141
- Added `std/oserrors` for OS error reporting. Added `std/envvars` for environment variables handling.
42+
- Removed deprecated `oids.oidToString`.
43+
4244

4345
- Changed mimedb to use an `OrderedTable` instead of `OrderedTableRef`, to use it in a const.
4446

lib/pure/oids.nim

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,6 @@ template toStringImpl[T: string | cstring](result: var T, oid: Oid) =
6767
when T is cstring:
6868
result[N] = '\0'
6969

70-
proc oidToString*(oid: Oid, str: cstring) {.deprecated: "unsafe; use `$`".} =
71-
## Converts an oid to a string which must have space allocated for 25 elements.
72-
# work around a compiler bug:
73-
var str = str
74-
toStringImpl(str, oid)
7570

7671
proc `$`*(oid: Oid): string =
7772
## Converts an OID to a string.

0 commit comments

Comments
 (0)