diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-06-19 23:33:02 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-06-19 23:33:02 +0200 |
commit | c9c941e339a6632247b6bd073d10bea548bed20b (patch) | |
tree | 436b16007c5d9b3451e7bc03e44ff2187f0c3b17 /gles3_builders.py | |
parent | 764193629ff0bac11c4a6ddfa946f1dd3d841799 (diff) | |
download | redot-engine-c9c941e339a6632247b6bd073d10bea548bed20b.tar.gz |
CI: Update static checks to black 23.3.0
And apply it to the codebase, removing empty lines at the start of blocks.
Diffstat (limited to 'gles3_builders.py')
-rw-r--r-- | gles3_builders.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/gles3_builders.py b/gles3_builders.py index 6b5a53221c..0b6a3c2542 100644 --- a/gles3_builders.py +++ b/gles3_builders.py @@ -40,7 +40,6 @@ def include_file_in_gles3_header(filename: str, header_data: GLES3HeaderStruct, line = fs.readline() while line: - if line.find("=") != -1 and header_data.reading == "": # Mode eqpos = line.find("=") @@ -121,7 +120,6 @@ def include_file_in_gles3_header(filename: str, header_data: GLES3HeaderStruct, uline = uline.replace(";", "") lines = uline.split(",") for x in lines: - x = x.strip() x = x[x.rfind(" ") + 1 :] if x.find("[") != -1: @@ -143,7 +141,6 @@ def include_file_in_gles3_header(filename: str, header_data: GLES3HeaderStruct, uline = uline.replace("{", "").strip() lines = uline.split(",") for x in lines: - x = x.strip() x = x[x.rfind(" ") + 1 :] if x.find("[") != -1: @@ -159,7 +156,6 @@ def include_file_in_gles3_header(filename: str, header_data: GLES3HeaderStruct, uline = uline.replace(";", "") lines = uline.split(",") for x in lines: - x = x.strip() x = x[x.rfind(" ") + 1 :] if x.find("[") != -1: @@ -486,7 +482,6 @@ def build_gles3_header( fd.write("\tvirtual void _init() override {\n\n") if header_data.uniforms: - fd.write("\t\tstatic const char* _uniform_strings[]={\n") if header_data.uniforms: for x in header_data.uniforms: @@ -497,7 +492,6 @@ def build_gles3_header( variant_count = 1 if len(header_data.variant_defines) > 0: - fd.write("\t\tstatic const char* _variant_defines[]={\n") for x in header_data.variant_defines: fd.write('\t\t\t"' + x + '",\n') @@ -542,7 +536,6 @@ def build_gles3_header( feedback_count = 0 if header_data.feedbacks: - fd.write("\t\tstatic const Feedback _feedbacks[]={\n") for x in header_data.feedbacks: name = x[0] |