Skip to content

Commit

Permalink
[embind] Remove init_embind. NFC
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sbc100 committed Oct 9, 2024
1 parent e927517 commit 7480919
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion emconfigure
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
11 changes: 0 additions & 11 deletions src/embind/embind.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down Expand Up @@ -219,7 +209,6 @@ var LibraryEmbind = {
},

// raw pointer -> instance
$registeredInstances__deps: ['$init_embind'],
$registeredInstances: {},

$getBasestPointer__deps: ['$throwBindingError'],
Expand Down

0 comments on commit 7480919

Please sign in to comment.