From 7480919f476525908fe05b45551d066a5c07ff83 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Wed, 9 Oct 2024 09:31:12 -0700 Subject: [PATCH] [embind] Remove init_embind. NFC All this function was doing was exporting a bunch of library methods. If folks want to export these functions they can do it themselves using the normal mechanisms. --- emconfigure | 1 - src/embind/embind.js | 11 ----------- 2 files changed, 12 deletions(-) diff --git a/emconfigure b/emconfigure index eef0f00c6730..dc553171ec23 100755 --- a/emconfigure +++ b/emconfigure @@ -3,7 +3,6 @@ # Emscripten is available under two separate licenses, the MIT license and the # University of Illinois/NCSA Open Source License. Both these licenses can be # found in the LICENSE file. -# # Entry point for running python scripts on UNIX systems. # # Automatically generated by `create_entry_points.py`; DO NOT EDIT. diff --git a/src/embind/embind.js b/src/embind/embind.js index d547b471afc2..9621312d4441 100644 --- a/src/embind/embind.js +++ b/src/embind/embind.js @@ -59,16 +59,6 @@ var LibraryEmbind = { }`, $EmValOptionalType__deps: ['$EmValType'], $EmValOptionalType: '=Object.assign({optional: true}, EmValType);', - $init_embind__deps: [ - '$getInheritedInstanceCount', '$getLiveInheritedInstances', - '$flushPendingDeletes', '$setDelayFunction'], - $init_embind__postset: 'init_embind();', - $init_embind: () => { - Module['getInheritedInstanceCount'] = getInheritedInstanceCount; - Module['getLiveInheritedInstances'] = getLiveInheritedInstances; - Module['flushPendingDeletes'] = flushPendingDeletes; - Module['setDelayFunction'] = setDelayFunction; - }, $throwUnboundTypeError__deps: ['$registeredTypes', '$typeDependencies', '$UnboundTypeError', '$getTypeName'], $throwUnboundTypeError: (message, types) => { @@ -219,7 +209,6 @@ var LibraryEmbind = { }, // raw pointer -> instance - $registeredInstances__deps: ['$init_embind'], $registeredInstances: {}, $getBasestPointer__deps: ['$throwBindingError'],