Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1710335 > unrolled thread

[PATCH 5/5] trace-cmd: Remove unused view_width variable

Started byMichael Sartain <mikesart@fastmail.com>
First post2017-08-12 19:40 +0200
Last post2017-08-12 19:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 5/5] trace-cmd: Remove unused view_width variable Michael Sartain <mikesart@fastmail.com> - 2017-08-12 19:40 +0200

#1710335 — [PATCH 5/5] trace-cmd: Remove unused view_width variable

FromMichael Sartain <mikesart@fastmail.com>
Date2017-08-12 19:40 +0200
Subject[PATCH 5/5] trace-cmd: Remove unused view_width variable
Message-ID<udIye-3S9-21@gated-at.bofh.it>
Signed-off-by: Michael Sartain <mikesart@fastmail.com>
---
 trace-graph.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/trace-graph.c b/trace-graph.c
index 1db342f..2c49549 100644
--- a/trace-graph.c
+++ b/trace-graph.c
@@ -1263,7 +1263,6 @@ static void draw_info_box(struct graph_info *ginfo, const gchar *buffer,
 	gint width, height;
 	GdkPixmap *pix;
 	static GdkGC *pix_bg;
-	gint view_width;
 	gint view_start;
 
 	if (!pix_bg) {
@@ -1284,7 +1283,6 @@ static void draw_info_box(struct graph_info *ginfo, const gchar *buffer,
 	height += PLOT_BOARDER * 2;
 
 	view_start = gtk_adjustment_get_value(ginfo->hadj);
-	view_width = gtk_adjustment_get_page_size(ginfo->hadj);
 	if (x > view_start + width)
 		x -= width;
 
-- 
2.13.2

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web