perf tools: Consolidate output field handling to hpp format routines
[deliverable/linux.git] / tools / perf / ui / gtk / hists.c
index 91f10f3f6dd16cd003e42a84e797541fa8d11d84..d5c336e1bb1476f68c1dbc91758f7469c419d235 100644 (file)
@@ -153,7 +153,6 @@ static void perf_gtk__show_hists(GtkWidget *window, struct hists *hists,
        struct perf_hpp_fmt *fmt;
        GType col_types[MAX_COLUMNS];
        GtkCellRenderer *renderer;
-       struct sort_entry *se;
        GtkTreeStore *store;
        struct rb_node *nd;
        GtkWidget *view;
@@ -172,16 +171,6 @@ static void perf_gtk__show_hists(GtkWidget *window, struct hists *hists,
        perf_hpp__for_each_format(fmt)
                col_types[nr_cols++] = G_TYPE_STRING;
 
-       list_for_each_entry(se, &hist_entry__sort_list, list) {
-               if (se->elide)
-                       continue;
-
-               if (se == &sort_sym)
-                       sym_col = nr_cols;
-
-               col_types[nr_cols++] = G_TYPE_STRING;
-       }
-
        store = gtk_tree_store_newv(nr_cols, col_types);
 
        view = gtk_tree_view_new();
@@ -199,16 +188,6 @@ static void perf_gtk__show_hists(GtkWidget *window, struct hists *hists,
                                                            col_idx++, NULL);
        }
 
-       list_for_each_entry(se, &hist_entry__sort_list, list) {
-               if (se->elide)
-                       continue;
-
-               gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(view),
-                                                           -1, se->se_header,
-                                                           renderer, "text",
-                                                           col_idx++, NULL);
-       }
-
        for (col_idx = 0; col_idx < nr_cols; col_idx++) {
                GtkTreeViewColumn *column;
 
@@ -253,16 +232,6 @@ static void perf_gtk__show_hists(GtkWidget *window, struct hists *hists,
                        gtk_tree_store_set(store, &iter, col_idx++, s, -1);
                }
 
-               list_for_each_entry(se, &hist_entry__sort_list, list) {
-                       if (se->elide)
-                               continue;
-
-                       se->se_snprintf(h, s, ARRAY_SIZE(s),
-                                       hists__col_len(hists, se->se_width_idx));
-
-                       gtk_tree_store_set(store, &iter, col_idx++, s, -1);
-               }
-
                if (symbol_conf.use_callchain && sort__has_sym) {
                        if (callchain_param.mode == CHAIN_GRAPH_REL)
                                total = h->stat.period;
This page took 0.025324 seconds and 5 git commands to generate.