Skip to content

Commit

Permalink
FunctionsView: Remove dead functions count
Browse files Browse the repository at this point in the history
  • Loading branch information
mborgerson committed Sep 24, 2023
1 parent 4961d87 commit 4db11b2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions angrmanagement/ui/views/functions_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ def __init__(self, workspace, instance, default_docking_position, *args, **kwarg
self.updateGeometry()

self.function_count = None
self._displayed_function_count = None

self.reload()

Expand All @@ -39,9 +38,6 @@ def refresh(self):
def set_function_count(self, count):
self.function_count = count

def set_displayed_function_count(self, count):
self._displayed_function_count = count

def reload(self):
if not self.instance.cfg.am_none:
self._function_table.function_manager = self.instance.kb.functions
Expand Down
4 changes: 0 additions & 4 deletions angrmanagement/ui/widgets/qfunction_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,16 +505,12 @@ def update_displayed_function_count(self):
self._status_label.setText("")
return
if cnt == len(self.function_manager):
self._view.set_displayed_function_count(None) # no filtering
self._status_label.setText("%d functions" % cnt)
else:
self._view.set_displayed_function_count(cnt)
self._status_label.setText("%d/%d functions" % (cnt, len(self.function_manager)))

def filter_functions(self, text):
self._table_view.filter(text)
if not text:
self._view.set_displayed_function_count(None)
self.update_displayed_function_count()

#
Expand Down

0 comments on commit 4db11b2

Please sign in to comment.