From 2d8365c48f797c7b947623eed8b1285d98323b68 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 9 Feb 2017 13:32:48 -0700 Subject: Remove unnecessary local variables I found an unused local variables in a couple of places in the Python code; this removes them. gdb/ChangeLog 2017-02-10 Tom Tromey * python/py-value.c (valpy_richcompare_throw): Remove unnecessary "cleanup" local. * python/py-type.c (typy_legacy_template_argument): Remove unnecessary "cleanup" local. --- gdb/python/py-value.c | 1 - 1 file changed, 1 deletion(-) (limited to 'gdb/python/py-value.c') diff --git a/gdb/python/py-value.c b/gdb/python/py-value.c index b9b012b..eb3d307 100644 --- a/gdb/python/py-value.c +++ b/gdb/python/py-value.c @@ -1330,7 +1330,6 @@ valpy_richcompare_throw (PyObject *self, PyObject *other, int op) int result; struct value *value_other; struct value *value_self; - struct cleanup *cleanup; scoped_value_mark free_values; -- cgit v1.1