From patchwork Fri Mar 18 23:43:07 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siva Chandra Reddy X-Patchwork-Id: 11416 Received: (qmail 99621 invoked by alias); 18 Mar 2016 23:43:12 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 99609 invoked by uid 89); 18 Mar 2016 23:43:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1415, 3111, 73510, Chandra X-HELO: mail-qg0-f49.google.com Received: from mail-qg0-f49.google.com (HELO mail-qg0-f49.google.com) (209.85.192.49) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 18 Mar 2016 23:43:10 +0000 Received: by mail-qg0-f49.google.com with SMTP id a36so81910953qge.0 for ; Fri, 18 Mar 2016 16:43:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to:cc; bh=+DklHkuuLrKl5+R6scbPhn6GVBd7VbnCLYwh4oK3iZg=; b=U6BVvbv+j2fjl7bLmWW9iSQPsUenfin3u6bWsSGS2P04mGDVp/n0yPxqjQmRsNCwhy xXxbEmbzXprbtttxxw5LYRrhvqZHjBHX6tYi42iKOUye16lhgd8oqlpn6GFYFk6jaZv0 CC74869HgG8nSRo6+h7J1+Ao/9lwqDAKmdIGz2Ov4ldZcF/r34RwkgdAf6+o1H/dIjBO Qtan/gJcRaVDEeokxYdXuBBD5y/Lgnj/TxjV/DwTYN2XATWPOY0YEYPv9gX/hxLW6AUg lIXkA3G5vBdn0H5R2qMgPViwV8VNowh9xg+PceeBG7yXqkHILHpK1fNskHJjmkTsDmcD 38vA== X-Gm-Message-State: AD7BkJIqnBMU8LvjXN1xNkySpEqiFCUjajx0LmcO8JIhZmvTaUd+J9Ra3l++sOrfAMawqWL3Rmx5EXR7tcNDO8jA MIME-Version: 1.0 X-Received: by 10.141.3.11 with SMTP id f11mr27369809qhd.90.1458344587864; Fri, 18 Mar 2016 16:43:07 -0700 (PDT) Received: by 10.55.116.130 with HTTP; Fri, 18 Mar 2016 16:43:07 -0700 (PDT) Date: Fri, 18 Mar 2016 16:43:07 -0700 Message-ID: Subject: [PR python/19819] Remove unused static vars in py-xmethods.c From: Siva Chandra To: gdb-patches Cc: Doug Evans X-IsSubscribed: yes This can probably go in as obvious. Still, checking if I got everything correct. gdb/ChangeLog: 2016-03-18 Siva Chandra Reddy PR python/19819 * python/py-xmethods.c (invoke_method_name): Remove. (py_invoke_method_name): Likewise. diff --git a/gdb/python/py-xmethods.c b/gdb/python/py-xmethods.c index 58bb783..1e3df35 100644 --- a/gdb/python/py-xmethods.c +++ b/gdb/python/py-xmethods.c @@ -31,13 +31,11 @@ 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,10 +733,6 @@ 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)