Skip to content

Commit 9f95bb0

Browse files
remove unused bson objects in test
1 parent ef6e278 commit 9f95bb0

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/libmongoc/tests/json-test-operations.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,6 @@ rename_op (mongoc_collection_t *collection,
10281028
mongoc_write_concern_t *wc)
10291029
{
10301030
bson_t args;
1031-
bson_t result;
10321031
const char *db;
10331032
const char *to;
10341033
bson_error_t error;
@@ -1045,7 +1044,6 @@ rename_op (mongoc_collection_t *collection,
10451044
ASSERT_OR_PRINT (res, error);
10461045

10471046
bson_destroy (&args);
1048-
bson_destroy (&result);
10491047
}
10501048

10511049

@@ -1056,7 +1054,6 @@ drop (mongoc_collection_t *collection,
10561054
mongoc_client_session_t *session,
10571055
mongoc_write_concern_t *wc)
10581056
{
1059-
bson_t result;
10601057
bson_error_t error;
10611058
bool res;
10621059

@@ -1065,8 +1062,6 @@ drop (mongoc_collection_t *collection,
10651062
/* This operation is only run by change stream tests, which use
10661063
it to trigger further events and check all results elsewhere. */
10671064
ASSERT_OR_PRINT (res, error);
1068-
1069-
bson_destroy (&result);
10701065
}
10711066

10721067

0 commit comments

Comments
 (0)