diff src/symtab.h @ 9474:25ed2d6aacf6

Parse nested functions more accurately.
author David Grundberg <individ@acc.umu.se>
date Thu, 30 Jul 2009 11:52:58 -0400
parents d34baf412786
children c5330ef7aecd
line wrap: on
line diff
--- a/src/symtab.h
+++ b/src/symtab.h
@@ -888,9 +888,6 @@
 
   static context_id current_context (void) { return xcurrent_context; }
 
-  // We use parent_scope to handle parsing subfunctions.
-  static scope_id parent_scope (void) { return xparent_scope; }
-
   static scope_id alloc_scope (void) { return scope_id_cache::alloc (); }
 
   static void set_scope (scope_id scope)
@@ -942,16 +939,6 @@
       }
   }
 
-  static void set_parent_scope (scope_id scope)
-  {
-    xparent_scope = scope;
-  }
-
-  static void reset_parent_scope (void)
-  {
-    set_parent_scope (-1);
-  }
-
   static void erase_scope (scope_id scope)
   {
     assert (scope != xglobal_scope);
@@ -1207,7 +1194,7 @@
 
   static void install_subfunction (const std::string& name,
 				   const octave_value& fcn,
-				   scope_id scope = xparent_scope)
+				   scope_id scope)
   {
     fcn_table_iterator p = fcn_table.find (name);
 
@@ -1852,9 +1839,6 @@
 
   static scope_id xcurrent_scope;
 
-  // We use parent_scope to handle parsing subfunctions.
-  static scope_id xparent_scope;
-
   static context_id xcurrent_context;
 
   symbol_table (void)