Removed dead code.
This commit is contained in:
parent
6d50e4bd27
commit
92514e38f0
|
|
@ -153,8 +153,6 @@ class ComponentGroup(object):
|
||||||
|
|
||||||
def match_component(self, c):
|
def match_component(self, c):
|
||||||
""" Test if a given component fits in this group """
|
""" Test if a given component fits in this group """
|
||||||
if not self.components:
|
|
||||||
return True
|
|
||||||
return compare_components(c, self.components[0], self.cfg)
|
return compare_components(c, self.components[0], self.cfg)
|
||||||
|
|
||||||
def contains_component(self, c):
|
def contains_component(self, c):
|
||||||
|
|
@ -163,7 +161,8 @@ class ComponentGroup(object):
|
||||||
|
|
||||||
def add_component(self, c):
|
def add_component(self, c):
|
||||||
""" Add a component to the group.
|
""" Add a component to the group.
|
||||||
Avoid repetition, checks if suitable """
|
Avoid repetition, checks if suitable.
|
||||||
|
Note: repeated components happend when a component contains more than one unit """
|
||||||
if not self.components:
|
if not self.components:
|
||||||
self.components.append(c)
|
self.components.append(c)
|
||||||
self.refs[c.ref] = c
|
self.refs[c.ref] = c
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue