Remove a pointless conditional

After #4445, the code in both branches of this conditional is the same.
This commit is contained in:
Jon Turney 2019-05-08 12:28:19 +01:00 committed by Dylan Baker
parent 58870fda16
commit 6d6f6ad5fa
1 changed files with 2 additions and 5 deletions

View File

@ -1532,11 +1532,8 @@ int dummy;
def generate_dynamic_link_rules(self):
num_pools = self.environment.coredata.backend_options['backend_max_links'].value
ctypes = [(self.build.compilers, False)]
if self.environment.is_cross_build():
ctypes.append((self.build.cross_compilers, True))
else:
ctypes.append((self.build.cross_compilers, True))
ctypes = [(self.build.compilers, False),
(self.build.cross_compilers, True)]
for (complist, is_cross) in ctypes:
for langname, compiler in complist.items():
if langname == 'java' \