diff options
| author | Dr. David Alan Gilbert <linux@treblig.org> | 2025-03-05 02:31:17 +0000 |
|---|---|---|
| committer | Namhyung Kim <namhyung@kernel.org> | 2025-03-10 11:31:24 -0700 |
| commit | cf99ec1525b056accbfc44b034a1d8672ef77f3f (patch) | |
| tree | 554f0044eebf54d5e053959fba865f3566bf930a /tools/perf/util/pstack.c | |
| parent | perf util: Remove unused perf_color_default_config (diff) | |
| download | linux-cf99ec1525b056accbfc44b034a1d8672ef77f3f.tar.gz linux-cf99ec1525b056accbfc44b034a1d8672ef77f3f.zip | |
perf util: Remove unused pstack__pop
The last use of pstack__pop() was removed in 2015 by
commit 6422184b087f ("perf hists browser: Simplify zooming code using
pstack_peek()")
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-4-linux@treblig.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/util/pstack.c')
| -rw-r--r-- | tools/perf/util/pstack.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/tools/perf/util/pstack.c b/tools/perf/util/pstack.c index a1d1e4ef6257..141ffa129c69 100644 --- a/tools/perf/util/pstack.c +++ b/tools/perf/util/pstack.c @@ -63,20 +63,6 @@ void pstack__push(struct pstack *pstack, void *key) pstack->entries[pstack->top++] = key; } -void *pstack__pop(struct pstack *pstack) -{ - void *ret; - - if (pstack->top == 0) { - pr_err("%s: underflow!\n", __func__); - return NULL; - } - - ret = pstack->entries[--pstack->top]; - pstack->entries[pstack->top] = NULL; - return ret; -} - void *pstack__peek(struct pstack *pstack) { if (pstack->top == 0) |
