aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-02-09 13:32:48 -0700
committerTom Tromey <tom@tromey.com>2017-02-10 12:24:34 -0700
commit2d8365c48f797c7b947623eed8b1285d98323b68 (patch)
tree30b69a2c57b604fc76ed79f739a769bc53f665f6 /gdb/python
parent2bb8f231957e2beecfb689a896252b8d9fb67e23 (diff)
downloadgdb-2d8365c48f797c7b947623eed8b1285d98323b68.zip
gdb-2d8365c48f797c7b947623eed8b1285d98323b68.tar.gz
gdb-2d8365c48f797c7b947623eed8b1285d98323b68.tar.bz2
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 <tom@tromey.com> * python/py-value.c (valpy_richcompare_throw): Remove unnecessary "cleanup" local. * python/py-type.c (typy_legacy_template_argument): Remove unnecessary "cleanup" local.
Diffstat (limited to 'gdb/python')
-rw-r--r--gdb/python/py-type.c1
-rw-r--r--gdb/python/py-value.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c
index 9c20582..d3506ca 100644
--- a/gdb/python/py-type.c
+++ b/gdb/python/py-type.c
@@ -833,7 +833,6 @@ typy_legacy_template_argument (struct type *type, const struct block *block,
std::unique_ptr<demangle_parse_info> info;
const char *err;
struct type *argtype;
- struct cleanup *cleanup;
if (TYPE_NAME (type) == NULL)
{
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;