From 90ae0fe902e76a0cb8255eef065cc39c561b7bff Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Fri, 10 Feb 2023 19:23:01 +0000 Subject: [PATCH] GC get_active_ext_lang get_active_ext_lang is not used anywhere. Delete it. Approved-By: Tom Tromey Change-Id: I4c2b6d0d11291103c098e4db1d6ea449875c96b7 --- 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 -- 2.30.2