mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-05 15:15:42 +00:00
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:
@@ -87,15 +87,6 @@ outermost_context_p ()
|
|||||||
|
|
||||||
/* See buildsym.h. */
|
/* 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 *
|
struct subfile *
|
||||||
get_current_subfile ()
|
get_current_subfile ()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -130,10 +130,6 @@ extern CORE_ADDR get_last_source_start_addr ();
|
|||||||
|
|
||||||
extern bool outermost_context_p ();
|
extern bool outermost_context_p ();
|
||||||
|
|
||||||
/* Return the context stack depth. */
|
|
||||||
|
|
||||||
extern int get_context_stack_depth ();
|
|
||||||
|
|
||||||
/* Return the current subfile. */
|
/* Return the current subfile. */
|
||||||
|
|
||||||
extern struct subfile *get_current_subfile ();
|
extern struct subfile *get_current_subfile ();
|
||||||
|
|||||||
@@ -287,11 +287,6 @@ struct buildsym_compunit
|
|||||||
return &m_context_stack.back ();
|
return &m_context_stack.back ();
|
||||||
}
|
}
|
||||||
|
|
||||||
int get_context_stack_depth () const
|
|
||||||
{
|
|
||||||
return m_context_stack.size ();
|
|
||||||
}
|
|
||||||
|
|
||||||
struct subfile *get_current_subfile ()
|
struct subfile *get_current_subfile ()
|
||||||
{
|
{
|
||||||
return m_current_subfile;
|
return m_current_subfile;
|
||||||
|
|||||||
Reference in New Issue
Block a user