From 0023fb68375b24437af518f8150c2868b3c74c7c Mon Sep 17 00:00:00 2001 From: windwood-xmu Date: Mon, 29 Jan 2018 22:42:57 +0800 Subject: [PATCH] Fix #1571 the Class Gen_compressed in build.py has two gen_accessible method. The problem was produced by the commit 2bd056a and the PR #1243. Delete the accidental incoming L266-L292 to fix that problem. --- build.py | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/build.py b/build.py index 67bb05b70..4d51de14e 100755 --- a/build.py +++ b/build.py @@ -267,33 +267,6 @@ class Gen_compressed(threading.Thread): self.do_compile(params, target_filename, filenames, "") - def gen_accessible(self): - target_filename = "blockly_accessible_compressed.js" - # Define the parameters for the POST request. - params = [ - ("compilation_level", "SIMPLE_OPTIMIZATIONS"), - ("use_closure_library", "true"), - ("language_out", "ES5"), - ("output_format", "json"), - ("output_info", "compiled_code"), - ("output_info", "warnings"), - ("output_info", "errors"), - ("output_info", "statistics"), - ] - - # Read in all the source files. - filenames = calcdeps.CalculateDependencies(self.search_paths, - [os.path.join("accessible", "app.component.js")]) - for filename in filenames: - # Filter out the Closure files (the compiler will add them). - if filename.startswith(os.pardir + os.sep): # '../' - continue - f = open(filename) - params.append(("js_code", "".join(f.readlines()))) - f.close() - - self.do_compile(params, target_filename, filenames, "") - def gen_blocks(self): target_filename = "blocks_compressed.js" # Define the parameters for the POST request.