From cd3ead0028044d208045a20d5f2fdf55c863770f Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Thu, 28 Dec 2017 12:13:34 -0600 Subject: [PATCH] testThread drop dead code --- testApp/misc/testThread.cpp | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/testApp/misc/testThread.cpp b/testApp/misc/testThread.cpp index f3b5fe7..5a278c6 100644 --- a/testApp/misc/testThread.cpp +++ b/testApp/misc/testThread.cpp @@ -152,28 +152,11 @@ static void testBinders() #endif } -#ifdef TESTTHREADCONTEXT - -static void testThreadContext() { - ExecutorPtr executor(new Executor(string("basic"),middlePriority)); - BasicPtr basic(new Basic(executor)); - MyFuncPtr myFunc(new MyFunc(basic)); - TimeFunctionPtr timeFunction(new TimeFunction(myFunc)); - double perCall = timeFunction->timeCall(); - perCall *= 1e6; - testDiag("time per call %f microseconds",perCall); - testDiag("testThreadContext PASSED"); -} -#endif - MAIN(testThread) { testPlan(6); testDiag("Tests thread"); testThreadRun(); testBinders(); -#ifdef TESTTHREADCONTEXT - testThreadContext(); -#endif return testDone(); }