Remove get_context_stack_depth

Nothing calls get_context_stack_depth, so this patch removes it.

I looked at also removing context_stack::depth but apparently this is
used in coffread.c, and I didn't want to figure out how to make it
local to just that code.

I'm checking this in as obvious.
This commit is contained in:
Tom Tromey
2025-10-23 18:04:14 -06:00
parent de2d4f8b76
commit f1a4759630
3 changed files with 0 additions and 18 deletions

View File

@@ -87,15 +87,6 @@ outermost_context_p ()
/* See buildsym.h. */
int
get_context_stack_depth ()
{
gdb_assert (buildsym_compunit != nullptr);
return buildsym_compunit->get_context_stack_depth ();
}
/* See buildsym.h. */
struct subfile *
get_current_subfile ()
{

View File

@@ -130,10 +130,6 @@ extern CORE_ADDR get_last_source_start_addr ();
extern bool outermost_context_p ();
/* Return the context stack depth. */
extern int get_context_stack_depth ();
/* Return the current subfile. */
extern struct subfile *get_current_subfile ();

View File

@@ -287,11 +287,6 @@ struct buildsym_compunit
return &m_context_stack.back ();
}
int get_context_stack_depth () const
{
return m_context_stack.size ();
}
struct subfile *get_current_subfile ()
{
return m_current_subfile;