Mercurial > octave
changeset 24281:a01c210e4287
delete unused symbol_table functions
* symtab.h (symbol_table::push_context, symbol_table::pop_context):
Delete unused functions.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 19 Nov 2017 12:49:15 -0500 |
parents | a26a8714db26 |
children | 81557c74be7f |
files | libinterp/corefcn/symtab.h |
diffstat | 1 files changed, 0 insertions(+), 26 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/symtab.h Sun Nov 19 09:51:19 2017 -0500 +++ b/libinterp/corefcn/symtab.h Sun Nov 19 12:49:15 2017 -0500 @@ -516,32 +516,6 @@ error ("install_built_in_dispatch: '%s' is undefined", name.c_str ()); } - void push_context (void) - { - if (m_current_scope == m_top_scope) - error ("invalid call to symtab::push_context"); - - if (m_current_scope) - m_current_scope->push_context (); - } - - // This is written as two separate functions instead of a single - // function with default values so that it will work properly with - // unwind_protect. - - void pop_context (void) - { - if (m_current_scope == m_top_scope) - error ("invalid call to symtab::pop_context"); - - if (m_current_scope) - m_current_scope->pop_context (); - } - - // For unwind_protect where a pointer argument is needed. - - void pop_context (void *) { pop_context (); } - std::list<symbol_record> glob (const std::string& pattern) { return (m_current_scope