[binutils-gdb] Remove unused str_backtrace_unavailable variable

Luis Machado via Gdb-cvs <[email protected]>
Newsgroups gmane.comp.gdb.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=8e77de4747e909527cd62d807bc2686ea0f63be3

commit 8e77de4747e909527cd62d807bc2686ea0f63be3
Author: Luis Machado <[email protected]>
Date:   Fri May 1 02:31:17 2026 -0500

    Remove unused str_backtrace_unavailable variable
    
    The str_backtrace_unavailable variable is initialized but never
    used anywhere in the codebase.
    
    Approved-By: Tom Tromey <[email protected]>

Diff:
---
 gdb/bt-utils.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/gdb/bt-utils.c b/gdb/bt-utils.c
index 7fc8d04f306..21a291c3df3 100644
--- a/gdb/bt-utils.c
+++ b/gdb/bt-utils.c
@@ -146,7 +146,6 @@ gdb_internal_backtrace_1 ()
 #endif
 
 static const char *str_backtrace = "----- Backtrace -----\n";
-static const char *str_backtrace_unavailable = "Backtrace unavailable\n";
 
 #endif /* GDB_PRINT_INTERNAL_BACKTRACE */
 
@@ -157,7 +156,6 @@ gdb_internal_backtrace_init_str ()
 {
 #ifdef GDB_PRINT_INTERNAL_BACKTRACE
   str_backtrace = _("----- Backtrace -----\n");
-  str_backtrace_unavailable = _("Backtrace unavailable\n");
 #endif
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.