Skip to content

Commit

Permalink
[WASM] Remove stale wasm_modular_golden handling in readable script a…
Browse files Browse the repository at this point in the history
…nd remove left-over files.

PiperOrigin-RevId: 713836573
  • Loading branch information
gkdn authored and copybara-github committed Jan 10, 2025
1 parent 36241b9 commit bb73154
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 3,363 deletions.
23 changes: 0 additions & 23 deletions dev/replace_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ def blaze_clean():
def blaze_build(
js_readable_dirs,
wasm_readable_dirs,
wasm_modular_readable_dirs,
wasm_imports_readable_dirs,
j2kt_readable_dirs,
j2kt_web_readable_dirs,
Expand All @@ -65,9 +64,6 @@ def blaze_build(
build_targets += [d + ":readable_wasm_golden" for d in wasm_readable_dirs]
build_targets += [d + ":readable_wasm_imports_golden"
for d in wasm_imports_readable_dirs]
build_targets += [
d + ":readable_wasm_modular_golden" for d in wasm_modular_readable_dirs
]
build_targets += [d + ":readable_j2kt_golden" for d in j2kt_readable_dirs]
build_targets += [
d + ":readable-j2kt-web_golden" for d in j2kt_web_readable_dirs
Expand All @@ -86,15 +82,6 @@ def replace_transpiled_wasm(readable_dirs):
)


def replace_transpiled_wasm_modular(readable_dirs):
"""Copy and replace with Blaze built Wasm modular output."""
_replace_readable_outputs(
readable_dirs,
"readable_wasm_modular_golden",
"output_wasm_modular",
)


def replace_transpiled_wasm_imports(readable_dirs):
"""Copy and replace with Blaze built Wasm imports."""
_replace_readable_outputs(
Expand Down Expand Up @@ -199,11 +186,6 @@ def main(argv):
readable_pattern, "_js") if "CLOSURE" in args.platforms else []
wasm_readable_dirs = get_readable_dirs(
readable_pattern, "_wasm") if "WASM" in args.platforms else []
wasm_modular_readable_dirs = (
get_readable_dirs(readable_pattern, "_wasm_modular_golden")
if "WASM" in args.platforms
else []
)
wasm_imports_readable_dirs = (
get_readable_dirs(readable_pattern, "_wasm_imports_golden")
if "WASM" in args.platforms else [])
Expand Down Expand Up @@ -252,7 +234,6 @@ def main(argv):
build_log = blaze_build(
js_readable_dirs,
wasm_readable_dirs,
wasm_modular_readable_dirs,
wasm_imports_readable_dirs,
j2kt_readable_dirs,
j2kt_web_readable_dirs,
Expand All @@ -277,10 +258,6 @@ def main(argv):
print(" Copying and reformatting transpiled Wasm")
replace_transpiled_wasm(wasm_readable_dirs)

if wasm_modular_readable_dirs:
print(" Copying and reformatting transpiled Wasm modular")
replace_transpiled_wasm_modular(wasm_modular_readable_dirs)

if wasm_imports_readable_dirs:
print(" Copying and reformatting transpiled Wasm imports")
replace_transpiled_wasm_imports(wasm_imports_readable_dirs)
Expand Down

This file was deleted.

Loading

0 comments on commit bb73154

Please sign in to comment.