summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2011-08-30 09:31:05 -0700
committerJoshua Lock <josh@linux.intel.com>2011-08-30 09:35:11 -0700
commit12c6f98ba7a68baeeaee00594d910e1be8d55d87 (patch)
treef984a23c89e3a7f2f6f94bf26555c2f6f8495e1a
parentd2450536269996147a22d6eafbdf72aa62afa4f6 (diff)
downloadbitbake-12c6f98ba7a68baeeaee00594d910e1be8d55d87.tar.gz
ui/crumbs/tasklistmodel: remove unnecessary check
Cheaper to set COL_INC to True regardless of whether it's already set. Signed-off-by: Joshua Lock <josh@linux.intel.com>
-rw-r--r--lib/bb/ui/crumbs/tasklistmodel.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/bb/ui/crumbs/tasklistmodel.py b/lib/bb/ui/crumbs/tasklistmodel.py
index 14a611f5e..790631fc9 100644
--- a/lib/bb/ui/crumbs/tasklistmodel.py
+++ b/lib/bb/ui/crumbs/tasklistmodel.py
@@ -436,9 +436,8 @@ class TaskListModel(gtk.ListStore):
def include_item(self, item_path, binb="", image_contents=False):
item_name = self[item_path][self.COL_NAME]
item_deps = self[item_path][self.COL_DEPS]
- item_inc = self[item_path][self.COL_INC]
- if not item_inc:
- self[item_path][self.COL_INC] = True
+
+ self[item_path][self.COL_INC] = True
item_bin = self[item_path][self.COL_BINB].split(', ')
if not binb in item_bin: