aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2022-01-31 15:23:32 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2022-03-06 11:32:25 -0500
commit7055fa96fcadf77482876b42393fe43b48fdfe16 (patch)
tree78e9da68af2dfbfdf08c289693dc84dd5aac0a66 /gdb/value.c
parent7a1550fcecb8db0fc6db0d59b18d3ca5ac6f4d39 (diff)
downloadgdb-7055fa96fcadf77482876b42393fe43b48fdfe16.zip
gdb-7055fa96fcadf77482876b42393fe43b48fdfe16.tar.gz
gdb-7055fa96fcadf77482876b42393fe43b48fdfe16.tar.bz2
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
Diffstat (limited to 'gdb/value.c')
-rw-r--r--gdb/value.c5
1 files changed, 0 insertions, 5 deletions
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;
}