X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fparser%2Fparse_context.cpp;h=2230d614913fe56fe9a7feb82d5a1070d363092a;hp=88b0b30ec9b298cce1652e03318b3bd2ad2590aa;hb=3aec0ba298693329c1194e547043fef1a78b1b0d;hpb=f5abf61d2cb1a1d1809d270a24fa098575b172c4 diff --git a/ginac/parser/parse_context.cpp b/ginac/parser/parse_context.cpp index 88b0b30e..2230d614 100644 --- a/ginac/parser/parse_context.cpp +++ b/ginac/parser/parse_context.cpp @@ -22,8 +22,6 @@ #include "parse_context.h" -#include "function.h" - #include #include @@ -46,22 +44,4 @@ find_or_insert_symbol(const std::string& name, symtab& syms, const bool strict) return sy; } -const prototype_table& get_default_reader(bool force_init) -{ - using std::make_pair; - static bool initialized = false; - static prototype_table reader; - if ( !initialized || force_init ) { - std::vector flist = function::get_registered_functions(); - std::vector::iterator i = flist.begin(), end = flist.end(); - for ( ; i != end; ++i ) { - std::string name = i->get_name(); - unsigned narg = i->get_nparams(); - reader[make_pair(name, narg)] = function::find_function(name, narg); - } - initialized = true; - } - return reader; -} - } // namespace GiNaC