From 92514e38f01785535e746ac50c7243af383a0c5a Mon Sep 17 00:00:00 2001 From: SET Date: Tue, 11 Aug 2020 14:36:32 -0300 Subject: [PATCH] Removed dead code. --- kiplot/bom/bom.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kiplot/bom/bom.py b/kiplot/bom/bom.py index 96526cde..1066c636 100644 --- a/kiplot/bom/bom.py +++ b/kiplot/bom/bom.py @@ -153,8 +153,6 @@ class ComponentGroup(object): def match_component(self, c): """ Test if a given component fits in this group """ - if not self.components: - return True return compare_components(c, self.components[0], self.cfg) def contains_component(self, c): @@ -163,7 +161,8 @@ class ComponentGroup(object): def add_component(self, c): """ 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: self.components.append(c) self.refs[c.ref] = c