remove unnecessary lambdas

This commit is contained in:
Daniel Sipka 2015-05-04 16:25:25 +02:00
parent 1d0d1bde8f
commit 89008bf4b1

View File

@ -5,9 +5,6 @@ std::map<std::string,std::function<std::string(const std::string&)>> specs_lambd
{"Interpolation - Expansion", [](const std::string&) { {"Interpolation - Expansion", [](const std::string&) {
return "{{planet}}"; return "{{planet}}";
}}, }},
{"Interpolation - Alternate Delimiters", [](const std::string&) {
return "|planet| => {{planet}}";
}},
{"Interpolation - Multiple Calls", [](const std::string&) { {"Interpolation - Multiple Calls", [](const std::string&) {
static int calls = 0; return std::to_string(++calls); static int calls = 0; return std::to_string(++calls);
}}, }},
@ -20,9 +17,6 @@ std::map<std::string,std::function<std::string(const std::string&)>> specs_lambd
{"Section - Expansion", [](const std::string& txt) { {"Section - Expansion", [](const std::string& txt) {
return txt + "{{planet}}" + txt; return txt + "{{planet}}" + txt;
}}, }},
{"Section - Alternate Delimiters", [](const std::string& txt) {
return txt + "{{planet}} => |planet|" + txt;
}},
{"Section - Multiple Calls", [](const std::string& txt) { {"Section - Multiple Calls", [](const std::string& txt) {
return "__" + txt + "__"; return "__" + txt + "__";
}}, }},