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.
This commit is contained in:
parent
2bb8f23195
commit
2d8365c48f
3 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
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.
|
||||||
|
|
||||||
2017-02-10 Tom Tromey <tom@tromey.com>
|
2017-02-10 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
* python/python.c (do_start_initialization): New function, from
|
* python/python.c (do_start_initialization): New function, from
|
||||||
|
|
|
@ -833,7 +833,6 @@ typy_legacy_template_argument (struct type *type, const struct block *block,
|
||||||
std::unique_ptr<demangle_parse_info> info;
|
std::unique_ptr<demangle_parse_info> info;
|
||||||
const char *err;
|
const char *err;
|
||||||
struct type *argtype;
|
struct type *argtype;
|
||||||
struct cleanup *cleanup;
|
|
||||||
|
|
||||||
if (TYPE_NAME (type) == NULL)
|
if (TYPE_NAME (type) == NULL)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1330,7 +1330,6 @@ valpy_richcompare_throw (PyObject *self, PyObject *other, int op)
|
||||||
int result;
|
int result;
|
||||||
struct value *value_other;
|
struct value *value_other;
|
||||||
struct value *value_self;
|
struct value *value_self;
|
||||||
struct cleanup *cleanup;
|
|
||||||
|
|
||||||
scoped_value_mark free_values;
|
scoped_value_mark free_values;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue