[PATCH 7/9] Remove redundant declarations
From: Elisha Hollander
Date: Mon May 24 2021 - 11:36:14 EST
---
tools/perf/scripts/python/event_analyzing_sample.py | 2 --
tools/perf/scripts/python/exported-sql-viewer.py | 1 -
2 files changed, 3 deletions(-)
diff --git a/tools/perf/scripts/python/event_analyzing_sample.py b/tools/perf/scripts/python/event_analyzing_sample.py
index 8d0fbb78900e..c58a9878cb69 100644
--- a/tools/perf/scripts/python/event_analyzing_sample.py
+++ b/tools/perf/scripts/python/event_analyzing_sample.py
@@ -70,8 +70,6 @@ def trace_begin():
# do more analysis with simple database commands.
#
def process_event(param_dict):
- event_attr = param_dict["attr"]
- sample = param_dict["sample"]
raw_buf = param_dict["raw_buf"]
comm = param_dict["comm"]
name = param_dict["ev_name"]
diff --git a/tools/perf/scripts/python/exported-sql-viewer.py b/tools/perf/scripts/python/exported-sql-viewer.py
index 221f36c906da..7c37d212c3ab 100755
--- a/tools/perf/scripts/python/exported-sql-viewer.py
+++ b/tools/perf/scripts/python/exported-sql-viewer.py
@@ -1688,7 +1688,6 @@ class SwitchGraphGraphicsItem(QGraphicsItem):
self.graph_origin_x = margin + title_width + margin
self.graph_origin_y = graph_height + margin
- x_axis_size = 1
y_axis_size = 1
self.yline = QGraphicsLineItem(0, 0, 0, graph_height, self)
--
2.25.1