summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2013-10-30 12:50:41 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2013-10-30 12:51:06 -0400
commita6d89e17995987549db36695f3ea490a18f30ba4 (patch)
tree7f7d695d647a29dbef7f9a8f382156b385371ded /sc
parent3fbda041d29ec6436460b75944e8c15f96366da5 (diff)
Ugh!
Change-Id: I95979ed5a303724e944a48b69d3c1cdbc949e53e
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/unit/opencl-test.cxx42
-rw-r--r--sc/source/core/opencl/formulagroupcl.cxx1
-rw-r--r--sc/source/core/tool/formulagroup.cxx1
3 files changed, 0 insertions, 44 deletions
diff --git a/sc/qa/unit/opencl-test.cxx b/sc/qa/unit/opencl-test.cxx
index f3a95763c13b..38fb15348465 100644
--- a/sc/qa/unit/opencl-test.cxx
+++ b/sc/qa/unit/opencl-test.cxx
@@ -38,48 +38,6 @@
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
-#include <stdio.h>
-#include <string>
-#include <sys/time.h>
-
-namespace {
-
-class stack_printer
-{
-public:
- explicit stack_printer(const char* msg) :
- msMsg(msg)
- {
- fprintf(stdout, "%s: --begin\n", msMsg.c_str());
- mfStartTime = getTime();
- }
-
- ~stack_printer()
- {
- double fEndTime = getTime();
- fprintf(stdout, "%s: --end (duration: %g sec)\n", msMsg.c_str(), (fEndTime - mfStartTime));
- }
-
- void printTime(int line) const
- {
- double fEndTime = getTime();
- fprintf(stdout, "%s: --(%d) (duration: %g sec)\n", msMsg.c_str(), line, (fEndTime - mfStartTime));
- }
-
-private:
- double getTime() const
- {
- timeval tv;
- gettimeofday(&tv, NULL);
- return tv.tv_sec + tv.tv_usec / 1000000.0;
- }
-
- ::std::string msMsg;
- double mfStartTime;
-};
-
-}
-
/* Implementation of Filters test */
class ScOpenclTest
diff --git a/sc/source/core/opencl/formulagroupcl.cxx b/sc/source/core/opencl/formulagroupcl.cxx
index 4a01cb04c24b..c71d2a047ae5 100644
--- a/sc/source/core/opencl/formulagroupcl.cxx
+++ b/sc/source/core/opencl/formulagroupcl.cxx
@@ -1291,7 +1291,6 @@ bool FormulaGroupInterpreterOpenCL::interpret( ScDocument& rDoc,
const ScAddress& rTopPos, const ScFormulaCellGroupRef& xGroup,
ScTokenArray& rCode )
{
- fprintf(stdout, "FormulaGroupInterpreterOpenCL::interpret: opencl\n");
generateRPNCode(rDoc, rTopPos, rCode);
// printf("Vector width = %d\n", xGroup->mnLength);
// Constructing "AST"
diff --git a/sc/source/core/tool/formulagroup.cxx b/sc/source/core/tool/formulagroup.cxx
index b4a1801c3801..257335909e81 100644
--- a/sc/source/core/tool/formulagroup.cxx
+++ b/sc/source/core/tool/formulagroup.cxx
@@ -289,7 +289,6 @@ bool FormulaGroupInterpreterSoftware::interpret(ScDocument& rDoc, const ScAddres
const ScFormulaCellGroupRef& xGroup,
ScTokenArray& rCode)
{
- fprintf(stdout, "FormulaGroupInterpreterSoftware::interpret: software\n");
typedef boost::unordered_map<const formula::FormulaToken*, formula::FormulaTokenRef> CachedTokensType;
// Decompose the group into individual cells and calculate them individually.