@@ -19,7 +19,6 @@ use crate::copy::copy_to_sink;
1919use crate :: cpp;
2020use crate :: duckdb:: BindInput ;
2121use crate :: duckdb:: BindResult ;
22- use crate :: duckdb:: ClientContext ;
2322use crate :: duckdb:: Data ;
2423use crate :: duckdb:: DataChunk ;
2524use crate :: duckdb:: DuckdbStringMap ;
@@ -197,17 +196,15 @@ pub unsafe extern "C-unwind" fn duckdb_table_function_init_local(
197196
198197#[ unsafe( no_mangle) ]
199198pub unsafe extern "C-unwind" fn duckdb_table_function_bind (
200- ctx : cpp:: duckdb_client_context ,
201199 bind_input : cpp:: duckdb_vx_tfunc_bind_input ,
202200 bind_result : cpp:: duckdb_vx_tfunc_bind_result ,
203201 error_out : * mut cpp:: duckdb_vx_error ,
204202) -> cpp:: duckdb_vx_data {
205- let client_context = unsafe { ClientContext :: borrow ( ctx) } ;
206203 let bind_input = unsafe { BindInput :: own ( bind_input) } ;
207204 let mut bind_result = unsafe { BindResult :: own ( bind_result) } ;
208205
209206 try_or_null ( error_out, || {
210- let bind_data = bind ( client_context , & bind_input, & mut bind_result) ?;
207+ let bind_data = bind ( & bind_input, & mut bind_result) ?;
211208 Ok ( Data :: from ( Box :: new ( bind_data) ) . as_ptr ( ) )
212209 } )
213210}
@@ -254,7 +251,6 @@ pub unsafe extern "C-unwind" fn duckdb_copy_function_copy_to_bind(
254251
255252#[ unsafe( no_mangle) ]
256253pub unsafe extern "C-unwind" fn duckdb_copy_function_copy_to_initialize_global (
257- client_context : cpp:: duckdb_client_context ,
258254 bind_data : * const c_void ,
259255 file_path : * const c_char ,
260256 error_out : * mut cpp:: duckdb_vx_error ,
@@ -264,9 +260,8 @@ pub unsafe extern "C-unwind" fn duckdb_copy_function_copy_to_initialize_global(
264260 . into_owned ( ) ;
265261 let bind_data = unsafe { bind_data. cast :: < CopyFunctionBind > ( ) . as_ref ( ) }
266262 . vortex_expect ( "bind_data null pointer" ) ;
267- let ctx = unsafe { ClientContext :: borrow ( client_context) } ;
268263 try_or_null ( error_out, || {
269- let bind_data = copy_to_initialize_global ( ctx , bind_data, file_path) ?;
264+ let bind_data = copy_to_initialize_global ( bind_data, file_path) ?;
270265 Ok ( Data :: from ( Box :: new ( bind_data) ) . as_ptr ( ) )
271266 } )
272267}
0 commit comments