Remove unneeded adapter function for Emscripten (#2949)

The `*_class_intern_init` functions have already been patched within
wasm-vips to include the missing `class_data` member, so this adapter
function was not needed.
This commit is contained in:
Kleis Auke Wolthuizen 2022-07-27 10:14:12 +02:00 committed by GitHub
parent a68eb00fbe
commit b808cba14a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 12 deletions

View File

@ -172,14 +172,6 @@ vips_extract_area_build( VipsObject *object )
return( 0 );
}
#ifdef __EMSCRIPTEN__
static void
vips_crop_class_intern_init_adapter( gpointer class, void *dummy )
{
vips_extract_area_class_intern_init( class );
}
#endif
static void
vips_extract_area_class_init( VipsExtractAreaClass *class )
{
@ -290,11 +282,7 @@ vips_crop_get_type( void )
GType new_type = g_type_register_static_simple( VIPS_TYPE_CONVERSION,
g_intern_static_string( "crop" ),
sizeof( VipsExtractAreaClass ),
#ifdef __EMSCRIPTEN__
(GClassInitFunc) vips_crop_class_intern_init_adapter,
#else
(GClassInitFunc)(void (*)(void)) vips_extract_area_class_intern_init,
#endif
sizeof( VipsExtractArea ),
#ifdef __EMSCRIPTEN__
(GInstanceInitFunc) vips_crop_init_adapter,