Remove unused Python local variables.

This commit is contained in:
Marcel Admiraal 2020-09-11 11:39:15 +01:00
parent 9d9ee2d4c2
commit 3070d0b735
3 changed files with 0 additions and 9 deletions

View file

@ -54,7 +54,6 @@ def make_fonts_header(target, source, env):
g.write("#define _EDITOR_FONTS_H\n") g.write("#define _EDITOR_FONTS_H\n")
# saving uncompressed, since freetype will reference from memory pointer # saving uncompressed, since freetype will reference from memory pointer
xl_names = []
for i in range(len(source)): for i in range(len(source)):
with open(source[i], "rb") as f: with open(source[i], "rb") as f:
buf = f.read() buf = f.read()

View file

@ -96,8 +96,6 @@ def build_rd_header(filename):
out_file = filename + ".gen.h" out_file = filename + ".gen.h"
fd = open(out_file, "w") fd = open(out_file, "w")
enum_constants = []
fd.write("/* WARNING, THIS FILE WAS GENERATED, DO NOT EDIT */\n") fd.write("/* WARNING, THIS FILE WAS GENERATED, DO NOT EDIT */\n")
out_file_base = out_file out_file_base = out_file
@ -165,7 +163,6 @@ class RAWHeaderStruct:
def include_file_in_raw_header(filename, header_data, depth): def include_file_in_raw_header(filename, header_data, depth):
fs = open(filename, "r") fs = open(filename, "r")
line = fs.readline() line = fs.readline()
text = ""
while line: while line:
@ -192,8 +189,6 @@ def build_raw_header(filename):
out_file = filename + ".gen.h" out_file = filename + ".gen.h"
fd = open(out_file, "w") fd = open(out_file, "w")
enum_constants = []
fd.write("/* WARNING, THIS FILE WAS GENERATED, DO NOT EDIT */\n") fd.write("/* WARNING, THIS FILE WAS GENERATED, DO NOT EDIT */\n")
out_file_base = out_file.replace(".glsl.gen.h", "_shader_glsl") out_file_base = out_file.replace(".glsl.gen.h", "_shader_glsl")

View file

@ -8,9 +8,6 @@ def find_dotnet_cli():
import os.path import os.path
if os.name == "nt": if os.name == "nt":
windows_exts = os.environ["PATHEXT"]
windows_exts = windows_exts.split(os.pathsep) if windows_exts else []
for hint_dir in os.environ["PATH"].split(os.pathsep): for hint_dir in os.environ["PATH"].split(os.pathsep):
hint_dir = hint_dir.strip('"') hint_dir = hint_dir.strip('"')
hint_path = os.path.join(hint_dir, "dotnet") hint_path = os.path.join(hint_dir, "dotnet")