Skip to content

Commit 507af6f

Browse files
authoredDec 3, 2019
Remove old lzma.js integration code (emscripten-core#9942)
We used to have support for lzma'ing of data files, but removed it quite some time ago. But some files remained.
1 parent 288682b commit 507af6f

31 files changed

+1
-5255
lines changed
 

‎tests/test_browser.py

+1-17
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from runner import BrowserCore, path_from_root, has_browser, EMTEST_BROWSER, no_fastcomp, no_wasm_backend, create_test_file, parameterized
2424
from tools import system_libs
2525
from tools.shared import PYTHON, EMCC, WINDOWS, FILE_PACKAGER, PIPE, SPIDERMONKEY_ENGINE, JS_ENGINES
26-
from tools.shared import try_delete, Building, run_process, run_js
26+
from tools.shared import try_delete, run_process, run_js
2727

2828
try:
2929
from http.server import BaseHTTPRequestHandler, HTTPServer
@@ -209,22 +209,6 @@ def test_emscripten_log(self):
209209
self.compile_btest([src, '--pre-js', path_from_root('src', 'emscripten-source-map.min.js'), '-g4', '-o', 'page.html', '-s', 'DEMANGLE_SUPPORT=1', '-s', 'WASM=0'])
210210
self.run_browser('page.html', None, '/report_result?1')
211211

212-
def build_native_lzma(self):
213-
lzma_native = path_from_root('third_party', 'lzma.js', 'lzma-native')
214-
if os.path.isfile(lzma_native) and os.access(lzma_native, os.X_OK):
215-
return
216-
217-
cwd = os.getcwd()
218-
try:
219-
os.chdir(path_from_root('third_party', 'lzma.js'))
220-
# On Windows prefer using MinGW make if it exists, otherwise fall back to hoping we have cygwin make.
221-
if WINDOWS and Building.which('mingw32-make'):
222-
run_process(['doit.bat'])
223-
else:
224-
run_process(['sh', './doit.sh'])
225-
finally:
226-
os.chdir(cwd)
227-
228212
def test_preload_file(self):
229213
absolute_src_path = os.path.join(self.get_dir(), 'somefile.txt').replace('\\', '/')
230214
open(absolute_src_path, 'w').write('''load me right before running the code please''')

‎third_party/lzma.js/README.markdown

-37
This file was deleted.

‎third_party/lzma.js/doit.bat

-4
This file was deleted.

‎third_party/lzma.js/doit.sh

-44
This file was deleted.

‎third_party/lzma.js/lzip/AUTHORS

-7
This file was deleted.

0 commit comments

Comments
 (0)