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

perf util: Remove unused perf_config__refresh

perf_config__refresh() was added in 2016 by
commit 8a0a9c7e9146 ("perf config: Introduce new init() and exit()")
but has remained unused.

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Reviewed-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250305023120.155420-7-linux@treblig.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>

authored by

Dr. David Alan Gilbert and committed by
Namhyung Kim
c1a37db3 e032e7a7

-7
-6
tools/perf/util/config.c
··· 856 856 config_set = NULL; 857 857 } 858 858 859 - void perf_config__refresh(void) 860 - { 861 - perf_config__exit(); 862 - perf_config__init(); 863 - } 864 - 865 859 static void perf_config_item__delete(struct perf_config_item *item) 866 860 { 867 861 zfree(&item->name);
-1
tools/perf/util/config.h
··· 49 49 int perf_config_set__collect(struct perf_config_set *set, const char *file_name, 50 50 const char *var, const char *value); 51 51 void perf_config__exit(void); 52 - void perf_config__refresh(void); 53 52 int perf_config__set_variable(const char *var, const char *value); 54 53 55 54 /**