[rtems-central commit] specview.py: Remove unused variable

Sebastian Huber sebh at rtems.org
Tue Nov 23 16:37:59 UTC 2021


Module:    rtems-central
Branch:    master
Commit:    f411e8cb2483b18b0ed74f76e4640607cb90031b
Changeset: http://git.rtems.org/rtems-central/commit/?id=f411e8cb2483b18b0ed74f76e4640607cb90031b

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Nov 23 17:42:37 2021 +0100

specview.py: Remove unused variable

---

 specview.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/specview.py b/specview.py
index 12dc0b4..964bacf 100755
--- a/specview.py
+++ b/specview.py
@@ -172,8 +172,11 @@ def _is_pre_qualified(item: Item) -> bool:
         set(parent.uid for parent in item.parents("constraint")).intersection(
             _NOT_PRE_QUALIFIED))
 
+
 def _validation_count(item: Item, enabled: List[str]) -> int:
-    return len(list(child for child in item.children("validation") if child.is_enabled(enabled)))
+    return len(
+        list(child for child in item.children("validation")
+             if child.is_enabled(enabled)))
 
 
 def _validate(item: Item, enabled: List[str]) -> bool:
@@ -187,7 +190,6 @@ def _validate(item: Item, enabled: List[str]) -> bool:
     for parent in item.parents(_PARENT_ROLES):
         validated = _validate(parent, enabled) and validated
         count += 1
-    dep_val = validated
     pre_qualified = _is_pre_qualified(item)
     item["_pre_qualified"] = pre_qualified
     if count == 0:



More information about the vc mailing list