Skip to content

Commit

Permalink
[file_packager] Remove support for legacy locateFilePackage (#22827)
Browse files Browse the repository at this point in the history
This old name was removed back in 2014 (bdfa7bc)
  • Loading branch information
sbc100 authored Nov 1, 2024
1 parent 8f08ccc commit 974ede7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tools/file_packager.py
Original file line number Diff line number Diff line change
Expand Up @@ -768,10 +768,6 @@ def generate_js(data_target, data_files, metadata):
}
var PACKAGE_NAME = '%s';
var REMOTE_PACKAGE_BASE = '%s';
if (typeof Module['locateFilePackage'] === 'function' && !Module['locateFile']) {
Module['locateFile'] = Module['locateFilePackage'];
err('warning: you defined Module.locateFilePackage, that has been renamed to Module.locateFile (using your locateFilePackage for now)');
}
var REMOTE_PACKAGE_NAME = Module['locateFile'] ? Module['locateFile'](REMOTE_PACKAGE_BASE, '') : REMOTE_PACKAGE_BASE;\n''' % (js_manipulation.escape_for_js_string(data_target), js_manipulation.escape_for_js_string(remote_package_name))
metadata['remote_package_size'] = remote_package_size
ret += '''var REMOTE_PACKAGE_SIZE = metadata['remote_package_size'];\n'''
Expand Down

0 comments on commit 974ede7

Please sign in to comment.