From e3966eeae11f7893d8ccce312bb664e162714d02 Mon Sep 17 00:00:00 2001 From: Jonathan Turner Date: Wed, 10 Jun 2009 23:15:18 +0000 Subject: [PATCH] Removed legacy concat_string --- langkit/langkit_parser.hpp | 40 -------------------------------------- wesley/wesley_engine.hpp | 8 +------- 2 files changed, 1 insertion(+), 47 deletions(-) diff --git a/langkit/langkit_parser.hpp b/langkit/langkit_parser.hpp index f17a711..efa060f 100644 --- a/langkit/langkit_parser.hpp +++ b/langkit/langkit_parser.hpp @@ -443,44 +443,4 @@ typedef Rule_Builder > typedef Rule_Builder > Id; typedef Rule_Builder > Str; -/* -template -R Str(const std::string &text, bool keep) { - return Rule(boost::bind(String_Rule, _1, _2, _3, _4, _5, text), keep); -} - -template -R Id(int id, bool keep) { - return Rule(boost::bind(Type_Rule, _1, _2, _3, _4, _5, id), keep); -} - -template -R Str(const std::string &text) { - return Rule(boost::bind(String_Rule, _1, _2, _3, _4, _5, text)); -} - -template -R Id(int id) { - return Rule(boost::bind(Type_Rule, _1, _2, _3, _4, _5, id)); -} - -template -R Ign(R rule) { - rule.impl->keep = false; - - return rule; -} - -template -R Epsilon(R rule) { - return Rule(boost::bind(Epsilon_Rule, _1, _2, _3, _4, _5, rule)); -} - -template -R Wrap(R rule) { - return Rule(boost::bind(Wrap_Rule, _1, _2, _3, _4, _5, rule)); -} -*/ - - #endif /* LANGKIT_PARSER_HPP_ */ diff --git a/wesley/wesley_engine.hpp b/wesley/wesley_engine.hpp index 8292287..9eddd43 100644 --- a/wesley/wesley_engine.hpp +++ b/wesley/wesley_engine.hpp @@ -24,11 +24,6 @@ template<> void print(const bool &t) } } -template -String_Type concat_string(const String_Type &s1, const String_Type &s2) { - return s1+s2; -} - template class Wesley_System { Lexer lexer; @@ -206,7 +201,7 @@ public: bootstrap(ss); bootstrap_vector >(ss, "VectorInt"); bootstrap_vector >(ss, "Vector"); - // dump_system(ss); + //dump_system(ss); //Register a new function, this one with typing for us, so we don't have to ubox anything //right here @@ -214,7 +209,6 @@ public: register_function(ss, &print, "print"); register_function(ss, &print, "print"); register_function(ss, &print, "print"); - register_function(ss, &concat_string, "concat_string"); register_function(ss, &print, "print"); ss.register_function(boost::function(boost::bind(&dump_system, boost::ref(ss))), "dump_system");