From 7055fa96fcadf77482876b42393fe43b48fdfe16 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 31 Jan 2022 15:23:32 -0500 Subject: gdb: remove internalvar_funcs::destroy No kind of internal var uses it remove it. This makes the transition to using a variant easier, since we don't need to think about where this should be called (in a destructor or not), if it can throw, etc. Change-Id: Iebbc867d1ce6716480450d9790410d6684cbe4dd --- gdb/value.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'gdb/value.c') diff --git a/gdb/value.c b/gdb/value.c index 7609996..080af48 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -2449,11 +2449,6 @@ clear_internalvar (struct internalvar *var) xfree (var->u.string); break; - case INTERNALVAR_MAKE_VALUE: - if (var->u.make_value.functions->destroy != NULL) - var->u.make_value.functions->destroy (var->u.make_value.data); - break; - default: break; } -- cgit v1.1