diff options
author | Tom Tromey <tom@tromey.com> | 2016-06-09 10:43:01 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2016-06-09 14:29:21 -0600 |
commit | 4dee35314b3bae66125faf69e1d2949ff7b00b49 (patch) | |
tree | 22db9622b2f2f341b01d02d6c1b6b69fa5885aa4 /gdb/python/py-xmethods.c | |
parent | a080d84da0051128a7ec12c0fa87696589bcbeb7 (diff) | |
download | gdb-4dee35314b3bae66125faf69e1d2949ff7b00b49.zip gdb-4dee35314b3bae66125faf69e1d2949ff7b00b49.tar.gz gdb-4dee35314b3bae66125faf69e1d2949ff7b00b49.tar.bz2 |
PR python/19819 - remove unused globals from py-xmethods.c
PR python/19819 concerns some unused global variables in
py-xmethods.c. This patch deletes the unused globals.
Tested by rebuilding.
2016-06-09 Tom Tromey <tom@tromey.com>
PR python/19819:
* python/py-xmethods.c (invoke_method_name)
(py_get_result_type_method_name, py_invoke_method_name): Remove.
(gdbpy_initialize_xmethods): Don't initialize
py_invoke_method_name, py_get_result_type_method_name.
Diffstat (limited to 'gdb/python/py-xmethods.c')
-rw-r--r-- | gdb/python/py-xmethods.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/gdb/python/py-xmethods.c b/gdb/python/py-xmethods.c index 58bb783..48205d8 100644 --- a/gdb/python/py-xmethods.c +++ b/gdb/python/py-xmethods.c @@ -31,13 +31,10 @@ static const char enabled_field_name[] = "enabled"; static const char match_method_name[] = "match"; static const char get_arg_types_method_name[] = "get_arg_types"; static const char get_result_type_method_name[] = "get_result_type"; -static const char invoke_method_name[] = "invoke"; static const char matchers_attr_str[] = "xmethods"; static PyObject *py_match_method_name = NULL; static PyObject *py_get_arg_types_method_name = NULL; -static PyObject *py_get_result_type_method_name = NULL; -static PyObject *py_invoke_method_name = NULL; struct gdbpy_worker_data { @@ -735,19 +732,10 @@ gdbpy_initialize_xmethods (void) if (py_match_method_name == NULL) return -1; - py_invoke_method_name = PyString_FromString (invoke_method_name); - if (py_invoke_method_name == NULL) - return -1; - py_get_arg_types_method_name = PyString_FromString (get_arg_types_method_name); if (py_get_arg_types_method_name == NULL) return -1; - py_get_result_type_method_name - = PyString_FromString (get_result_type_method_name); - if (py_get_result_type_method_name == NULL) - return -1; - return 1; } |