Skip to contentSkip to conversation

traceeval: Remove free_results()

PATCH In review Steven Rostedt 2 participants 2 messages Aug 4, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 traceeval: Remove free_results()

From: "Steven Rostedt (Google)" <[email protected]>

The static function free_results() was never used. I kept it around for when I was going to add it (and to remind myself not to forgot about it, which is why I left the warning). But now that the code is being rewritten, there's no more need to keep he warning around to remind me to attach it. Get rid of it, all that code is going away anyway.

---
 src/trace-analysis.c | 6 ------
 1 file changed, 6 deletions(-)
src/trace-analysis.c +0 -6
index 0f68b9941b1e..ba4e1c75d634 100644
@@ -197,12 +197,6 @@ static int cmp_keys(struct traceeval_key_info_array *tarray,
 	return 0;
 }
 
-static void free_results (struct traceeval *teval)
-{
-	free(teval->results);
-	teval->results = NULL;
-}
-
 static int make_key(struct traceeval *teval, const struct traceeval_key *keys, int *err)
 {
 	struct traceeval_key_info *kinfo;
Signature · 1 line
2.40.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Steven Rostedt

From: "Steven Rostedt (Google)" <[email protected]>

The static function free_results() was never used. I kept it around for when I was going to add it (and to remind myself not to forgot about it, which is why I left the warning). But now that the code is being rewritten, there's no more need to keep he warning around to remind me to attach it. Get rid of it, all that code is going away anyway.