@@ -302,26 +302,6 @@ int loader_load_from_file(const loader_tag tag, const loader_path paths[], size_
302302 return loader_impl_load_from_file (& loader_manager , p , plugin_impl_type (p , loader_impl ), paths , size , handle );
303303}
304304
305- int loader_load_from_file_ctx (const loader_tag tag , const loader_path paths [], size_t size , void * ctx )
306- {
307- if (loader_initialize () == 1 )
308- {
309- return 1 ;
310- }
311-
312- plugin p = loader_get_impl_plugin (tag );
313-
314- if (p == NULL )
315- {
316- log_write ("metacall" , LOG_LEVEL_ERROR , "Tried to load %" PRIuS " file(s) from non existent loader (%s): %s" , size , tag , paths [0 ]);
317- return 1 ;
318- }
319-
320- log_write ("metacall" , LOG_LEVEL_DEBUG , "Loading %" PRIuS " file(s) (%s) from path(s): %s ..." , size , tag , paths [0 ]);
321-
322- return loader_impl_load_from_file_ctx (& loader_manager , p , plugin_impl_type (p , loader_impl ), paths , size , ctx );
323- }
324-
325305int loader_load_from_memory (const loader_tag tag , const char * buffer , size_t size , void * * handle )
326306{
327307 if (loader_initialize () == 1 )
@@ -362,7 +342,7 @@ int loader_load_from_package(const loader_tag tag, const loader_path path, void
362342 return loader_impl_load_from_package (& loader_manager , p , plugin_impl_type (p , loader_impl ), path , handle );
363343}
364344
365- int loader_load_from_configuration (const loader_path path , void * * handle , void * ctx , void * allocator )
345+ int loader_load_from_configuration (const loader_path path , void * * handle , void * allocator )
366346{
367347 loader_name config_name ;
368348 configuration config ;
@@ -487,17 +467,7 @@ int loader_load_from_configuration(const loader_path path, void **handle, void *
487467 }
488468 }
489469
490- int result = 0 ;
491- if (ctx != NULL )
492- {
493- result = loader_load_from_file_ctx ((const char * )value_to_string (tag ), (const loader_path * )paths , size , ctx );
494- }
495- else
496- {
497- result = loader_load_from_file ((const char * )value_to_string (tag ), (const loader_path * )paths , size , handle );
498- }
499-
500- if (result != 0 )
470+ if (loader_load_from_file ((const char * )value_to_string (tag ), (const loader_path * )paths , size , handle ) != 0 )
501471 {
502472 log_write ("metacall" , LOG_LEVEL_ERROR , "Loader load from configuration invalid load from file" );
503473
0 commit comments