From 476c809cf4007f3d6294188c4cde125a1295d40c Mon Sep 17 00:00:00 2001 From: Stefan Radomski Date: Mon, 3 Jul 2017 17:32:48 +0200 Subject: Reverted test-performance --- test/src/test-performance.cpp | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/test/src/test-performance.cpp b/test/src/test-performance.cpp index 922b1ca..4142b9d 100644 --- a/test/src/test-performance.cpp +++ b/test/src/test-performance.cpp @@ -1,7 +1,5 @@ #include "uscxml/config.h" #include "uscxml/Interpreter.h" -#include "uscxml/plugins/Factory.h" -#include "uscxml/debug/Benchmark.h" #include #include @@ -9,19 +7,6 @@ using namespace uscxml; using namespace std::chrono; -class InterpreterCallbacks { -public: - InterpreterCallbacks() {} - void beforeEnterState(const std::string& stateName, std::function function) { - _beforeEnterStates.push_back(function); - } - - void operator() { - } - - std::list > _beforeEnterStates; -}; - int main(int argc, char** argv) { if (argc < 2) { std::cout << "Expected filename as first parameter" << std::endl; @@ -30,17 +15,6 @@ int main(int argc, char** argv) { Interpreter interpreter = Interpreter::fromURL(argv[1]); - ActionLanguage al; - al.microStepper = Factory::getInstance()->createMicroStepper("large", (MicroStepCallbacks*)interpreter); - interpreter.setActionLanguage(al); - - InterpreterCallbacks callbacks; - callbacks.beforeEnterState("mark", [](const std::string& sessionId) { - std::cout << "foo"; - }); - - - InterpreterState state; system_clock::time_point start = system_clock::now(); @@ -69,5 +43,4 @@ int main(int argc, char** argv) { iterations = 0; } } - Benchmark::report(std::cout); } -- cgit v0.12