Removed dead code in v5_sch.py

This commit is contained in:
Salvador E. Tropea 2021-02-04 16:16:04 -03:00
parent 047fe53e1d
commit ae49289006
1 changed files with 3 additions and 7 deletions

View File

@ -1476,13 +1476,9 @@ class Schematic(object):
files.update(sch.sheet.get_files())
return list(files)
def get_components(self, exclude_power=True):
""" A list of all the components. """
if exclude_power:
components = [c for c in self.components if not c.is_power]
else: # pragma: no cover (Internal)
# Currently unused
components = [c for c in self.components]
def get_components(self):
""" A list of all the components. Power excluded. """
components = [c for c in self.components if not c.is_power]
for sch in self.sheets:
components.extend(sch.sheet.get_components(exclude_power))
components.sort(key=lambda g: g.ref)