Skip to content

Commit 2a3becf

Browse files
authored
Remove unused function. NFC (#17590)
This should have been removed with #16529
1 parent 5a3c37d commit 2a3becf

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

emscripten.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -460,28 +460,6 @@ def get_metadata(infile, outfile, modify_wasm, args):
460460
return metadata
461461

462462

463-
# Test function for comparing binaryen vs python metadata.
464-
# Remove this once we go back to having just one method.
465-
def compare_metadata(metadata, pymetadata):
466-
if sorted(metadata.keys()) != sorted(pymetadata.keys()):
467-
print(sorted(metadata.keys()))
468-
print(sorted(pymetadata.keys()))
469-
exit_with_error('metadata keys mismatch')
470-
for key in metadata:
471-
old = metadata[key]
472-
new = pymetadata[key]
473-
if key == 'features':
474-
old = sorted(old)
475-
new = sorted(new)
476-
if old != new:
477-
print(key)
478-
open(path_from_root('first.txt'), 'w').write(pprint.pformat(old))
479-
open(path_from_root('second.txt'), 'w').write(pprint.pformat(new))
480-
print(pprint.pformat(old))
481-
print(pprint.pformat(new))
482-
exit_with_error('metadata mismatch')
483-
484-
485463
def finalize_wasm(infile, outfile, memfile):
486464
building.save_intermediate(infile, 'base.wasm')
487465
args = []

0 commit comments

Comments
 (0)