public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] GC get_active_ext_lang
@ 2023-02-15 21:01 Pedro Alves
  0 siblings, 0 replies; only message in thread
From: Pedro Alves @ 2023-02-15 21:01 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=90ae0fe902e76a0cb8255eef065cc39c561b7bff

commit 90ae0fe902e76a0cb8255eef065cc39c561b7bff
Author: Pedro Alves <pedro@palves.net>
Date:   Fri Feb 10 19:23:01 2023 +0000

    GC get_active_ext_lang
    
    get_active_ext_lang is not used anywhere.  Delete it.
    
    Approved-By: Tom Tromey <tom@tromey.com>
    Change-Id: I4c2b6d0d11291103c098e4db1d6ea449875c96b7

Diff:
---
 gdb/extension-priv.h | 2 --
 gdb/extension.c      | 8 --------
 2 files changed, 10 deletions(-)

diff --git a/gdb/extension-priv.h b/gdb/extension-priv.h
index 119377b4024..23a9f646d12 100644
--- a/gdb/extension-priv.h
+++ b/gdb/extension-priv.h
@@ -303,8 +303,6 @@ struct active_ext_lang_state
   struct signal_handler sigint_handler;
 };
 
-extern const struct extension_language_defn *get_active_ext_lang (void);
-
 extern struct active_ext_lang_state *set_active_ext_lang
   (const struct extension_language_defn *);
 
diff --git a/gdb/extension.c b/gdb/extension.c
index 0a9803a3023..1e52afc4da2 100644
--- a/gdb/extension.c
+++ b/gdb/extension.c
@@ -647,14 +647,6 @@ static int quit_flag;
 static const struct extension_language_defn *active_ext_lang
   = &extension_language_gdb;
 
-/* Return the currently active extension language.  */
-
-const struct extension_language_defn *
-get_active_ext_lang (void)
-{
-  return active_ext_lang;
-}
-
 /* Install a SIGINT handler.  */
 
 static void

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-15 21:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-15 21:01 [binutils-gdb] GC get_active_ext_lang Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).