From 7aaaa45eb27b01c1faa4166f8f2791d38df63e8d Mon Sep 17 00:00:00 2001 From: SET Date: Thu, 13 Aug 2020 23:06:19 -0300 Subject: [PATCH] Commented dead code. Now that we guess the units from the prefix there is no need to match missing units against known units. --- kiplot/bom/units.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/kiplot/bom/units.py b/kiplot/bom/units.py index cb44bd5c..94209b81 100644 --- a/kiplot/bom/units.py +++ b/kiplot/bom/units.py @@ -173,9 +173,10 @@ def compare_values(c1, c2): # Values match if u1 == u2: return True # Units match - if not u1: - return True # No units for component 1 - if not u2: - return True # No units for component 2 + # No longer posible because now we use the prefix to determine absent units + # if not u1: + # return True # No units for component 1 + # if not u2: + # return True # No units for component 2 return False