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.
/* 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 ()
{
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 ();
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;