Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf metric: Remove unused struct metric_ref_node

After commit 46bdc0bf8d21 ("perf metric: Simplify metric_refs
calculation"), no one use struct metric_ref_node, so remove it.

Signed-off-by: Yuan Can <yuancan@huawei.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/linux-perf-users/20220927013931.110475-4-yuancan@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Yuan Can and committed by
Arnaldo Carvalho de Melo
18f224ee 8d9b1734

-11
-11
tools/perf/util/metricgroup.c
··· 109 109 rblist__exit(metric_events); 110 110 } 111 111 112 - /* 113 - * A node in the list of referenced metrics. metric_expr 114 - * is held as a convenience to avoid a search through the 115 - * metric list. 116 - */ 117 - struct metric_ref_node { 118 - const char *metric_name; 119 - const char *metric_expr; 120 - struct list_head list; 121 - }; 122 - 123 112 /** 124 113 * The metric under construction. The data held here will be placed in a 125 114 * metric_expr.