diff options
author | Juan Carlos <juancarlospaco@gmail.com> | 2022-02-14 00:09:21 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-14 09:09:21 +0100 |
commit | 42eeab5fd181ffca6d1197b704a15f056939cfa8 (patch) | |
tree | faa9e11240911a4e6b0250b2785248918a8e0d13 | |
parent | cda77c15209519ea04f889a826ac79c7cbb7e152 (diff) | |
download | Nim-42eeab5fd181ffca6d1197b704a15f056939cfa8.tar.gz |
Remove Deprecated oids.oidsToString (#19519)
* Remove deprecated oids.oidToString * Remove deprecated oids.oidToString
-rw-r--r-- | changelog.md | 2 | ||||
-rw-r--r-- | lib/pure/oids.nim | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/changelog.md b/changelog.md index b21784bae..ec13152d0 100644 --- a/changelog.md +++ b/changelog.md @@ -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. diff --git a/lib/pure/oids.nim b/lib/pure/oids.nim index da285a187..776c046b1 100644 --- a/lib/pure/oids.nim +++ b/lib/pure/oids.nim @@ -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. |