@@ -851,27 +851,6 @@ BSON_THREAD_FUN (background_mongoc_gridfs_file_readv, data)
851851 BSON_THREAD_RETURN ;
852852}
853853
854- static
855- BSON_THREAD_FUN (background_mongoc_gridfs_find_one , data )
856- {
857- future_t * future = (future_t * ) data ;
858- future_value_t return_value ;
859-
860- return_value .type = future_value_mongoc_gridfs_file_ptr_type ;
861-
862- future_value_set_mongoc_gridfs_file_ptr (
863- & return_value ,
864- mongoc_gridfs_find_one (
865- future_value_get_mongoc_gridfs_ptr (future_get_param (future , 0 )),
866- future_value_get_const_bson_ptr (future_get_param (future , 1 )),
867- future_value_get_bson_error_ptr (future_get_param (future , 2 ))
868- ));
869-
870- future_resolve (future , return_value );
871-
872- BSON_THREAD_RETURN ;
873- }
874-
875854static
876855BSON_THREAD_FUN (background_mongoc_gridfs_file_remove , data )
877856{
@@ -2304,28 +2283,6 @@ future_gridfs_file_readv (
23042283 return future ;
23052284}
23062285
2307- future_t *
2308- future_gridfs_find_one (
2309- mongoc_gridfs_ptr gridfs ,
2310- const_bson_ptr query ,
2311- bson_error_ptr error )
2312- {
2313- future_t * future = future_new (future_value_mongoc_gridfs_file_ptr_type ,
2314- 3 );
2315-
2316- future_value_set_mongoc_gridfs_ptr (
2317- future_get_param (future , 0 ), gridfs );
2318-
2319- future_value_set_const_bson_ptr (
2320- future_get_param (future , 1 ), query );
2321-
2322- future_value_set_bson_error_ptr (
2323- future_get_param (future , 2 ), error );
2324-
2325- future_start (future , background_mongoc_gridfs_find_one );
2326- return future ;
2327- }
2328-
23292286future_t *
23302287future_gridfs_file_remove (
23312288 mongoc_gridfs_file_ptr file ,
0 commit comments