diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-04-03 10:04:55 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-04-03 10:04:55 -0400 |
commit | fb6b893180faec03e1d32149ef5cc412df9714df (patch) | |
tree | 66b79d24e2b2dd9049710aae258796adc1c52f78 /tools/perf/util/newt.c | |
parent | 4af8b35db6634dd1e0d616de689582b6c93550af (diff) |
perf newt: Remove useless column width calculation
Not used in the TUI interface.
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/newt.c')
-rw-r--r-- | tools/perf/util/newt.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/tools/perf/util/newt.c b/tools/perf/util/newt.c index edd628f5337b..a2ba3fffe04a 100644 --- a/tools/perf/util/newt.c +++ b/tools/perf/util/newt.c | |||
@@ -390,11 +390,8 @@ static void perf_session__selection(newtComponent self, void *data) | |||
390 | int perf_session__browse_hists(struct rb_root *hists, u64 nr_hists, | 390 | int perf_session__browse_hists(struct rb_root *hists, u64 nr_hists, |
391 | u64 session_total, const char *helpline) | 391 | u64 session_total, const char *helpline) |
392 | { | 392 | { |
393 | struct sort_entry *se; | ||
394 | struct rb_node *nd; | 393 | struct rb_node *nd; |
395 | char seq[] = "."; | 394 | char seq[] = "."; |
396 | unsigned int width; | ||
397 | char *col_width = symbol_conf.col_width_list_str; | ||
398 | int rows, cols, idx; | 395 | int rows, cols, idx; |
399 | int max_len = 0; | 396 | int max_len = 0; |
400 | char str[1024]; | 397 | char str[1024]; |
@@ -423,23 +420,6 @@ int perf_session__browse_hists(struct rb_root *hists, u64 nr_hists, | |||
423 | 420 | ||
424 | newtComponentAddCallback(tree, perf_session__selection, &selection); | 421 | newtComponentAddCallback(tree, perf_session__selection, &selection); |
425 | 422 | ||
426 | list_for_each_entry(se, &hist_entry__sort_list, list) { | ||
427 | if (se->elide) | ||
428 | continue; | ||
429 | width = strlen(se->header); | ||
430 | if (se->width) { | ||
431 | if (symbol_conf.col_width_list_str) { | ||
432 | if (col_width) { | ||
433 | *se->width = atoi(col_width); | ||
434 | col_width = strchr(col_width, ','); | ||
435 | if (col_width) | ||
436 | ++col_width; | ||
437 | } | ||
438 | } | ||
439 | *se->width = max(*se->width, width); | ||
440 | } | ||
441 | } | ||
442 | |||
443 | idx = 0; | 423 | idx = 0; |
444 | for (nd = rb_first(hists); nd; nd = rb_next(nd)) { | 424 | for (nd = rb_first(hists); nd; nd = rb_next(nd)) { |
445 | struct hist_entry *h = rb_entry(nd, struct hist_entry, rb_node); | 425 | struct hist_entry *h = rb_entry(nd, struct hist_entry, rb_node); |