GC get_active_ext_lang
authorPedro Alves <pedro@palves.net>
Fri, 10 Feb 2023 19:23:01 +0000 (19:23 +0000)
committerPedro Alves <pedro@palves.net>
Wed, 15 Feb 2023 20:58:10 +0000 (20:58 +0000)
get_active_ext_lang is not used anywhere.  Delete it.

Approved-By: Tom Tromey <tom@tromey.com>
Change-Id: I4c2b6d0d11291103c098e4db1d6ea449875c96b7

gdb/extension-priv.h
gdb/extension.c

index 119377b40247bc9bbed16f2e401e4e6168d317dc..23a9f646d1238f995752015b9eeafcdef53a278e 100644 (file)
@@ -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 *);
 
index 0a9803a302345f6ceca74cb30ae42058cef8961d..1e52afc4da2fe9dac9d72f3062a00d64d7cda759 100644 (file)
@@ -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