Skip to content

Commit c0e3c82

Browse files
authored
CDRIVER-5698 remove bson_string_t (#1917)
1 parent 2846383 commit c0e3c82

15 files changed

+2
-694
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Unreleased (2.0.0)
1717
* `MONGOC_QUERY_SLAVE_OK` is removed. Use the equivalent `MONGOC_QUERY_SECONDARY_OK` instead.
1818
* `MONGOC_URI_SLAVEOK` is removed. It was unused.
1919
* `mongoc_collection_save` is removed. Use `mongoc_collection_insert_one` or `mongoc_collection_replace_one` instead.
20+
* `bson_string_t` and associated functions are removed.
2021
* `mongoc_cursor_is_alive` is removed. Use the equivalent `mongoc_cursor_more` instead.
2122
* `mongoc_collection_delete` is removed. Use `mongoc_collection_delete_one` or `mongoc_collection_delete_many` instead.
2223
* `mongoc_delete_flags_t` and `mongoc_reply_flags_t` are removed.

src/common/src/common-string-private.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@
2424
#include <string.h>
2525

2626

27-
/* Until the deprecated bson_string_t is removed, this must have the same members in the same order, so we can safely
28-
* cast between the two types. Afterward, we are free to modify the memory layout as needed.
29-
*
27+
/*
3028
* In mcommon_string_t, 'str' is guaranteed to be NUL terminated and SHOULD be valid UTF-8. mcommon_string_t operations
3129
* MUST maintain the validity of valid UTF-8 strings.
3230
*

src/libbson/doc/api.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ API Reference
1515
bson_oid_t
1616
bson_reader_t
1717
character_and_string_routines
18-
bson_string_t
1918
bson_subtype_t
2019
bson_type_t
2120
bson_unichar_t

src/libbson/doc/bson_string_append.rst

Lines changed: 0 additions & 28 deletions
This file was deleted.

src/libbson/doc/bson_string_append_c.rst

Lines changed: 0 additions & 28 deletions
This file was deleted.

src/libbson/doc/bson_string_append_printf.rst

Lines changed: 0 additions & 28 deletions
This file was deleted.

src/libbson/doc/bson_string_append_unichar.rst

Lines changed: 0 additions & 28 deletions
This file was deleted.

src/libbson/doc/bson_string_free.rst

Lines changed: 0 additions & 32 deletions
This file was deleted.

src/libbson/doc/bson_string_new.rst

Lines changed: 0 additions & 33 deletions
This file was deleted.

src/libbson/doc/bson_string_t.rst

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)