summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2011-04-26 13:11:11 -0400
committerKohei Yoshida <kyoshida@novell.com>2011-04-26 13:11:11 -0400
commitf0fc8d79daedc19995b8ea917b2d709bb9fe031d (patch)
tree4d19d39fb53163b5f4cf004d1f6779a70b1f039a /sc/source
parent6b22b46470da33a31e29da41929d3f0150d187e4 (diff)
Ugh!
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/core/data/dpoutput.cxx43
1 files changed, 0 insertions, 43 deletions
diff --git a/sc/source/core/data/dpoutput.cxx b/sc/source/core/data/dpoutput.cxx
index 782ab668fe1b..99a011cf4cac 100644
--- a/sc/source/core/data/dpoutput.cxx
+++ b/sc/source/core/data/dpoutput.cxx
@@ -74,48 +74,6 @@ using ::com::sun::star::uno::makeAny;
using ::com::sun::star::uno::Any;
using ::rtl::OUString;
-#include <stdio.h>
-#include <string>
-#include <sys/time.h>
-
-namespace {
-
-class StackPrinter
-{
-public:
- explicit StackPrinter(const char* msg) :
- msMsg(msg)
- {
- fprintf(stdout, "%s: --begin\n", msMsg.c_str());
- mfStartTime = getTime();
- }
-
- ~StackPrinter()
- {
- 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;
-};
-
-}
-
// -----------------------------------------------------------------------
//! move to a header file
@@ -806,7 +764,6 @@ sal_Int32 ScDPOutput::GetPositionType(const ScAddress& rPos)
void ScDPOutput::Output()
{
- StackPrinter __stack_printer__("ScDPOutput::Output");
long nField;
SCTAB nTab = aStartPos.Tab();
const uno::Sequence<sheet::DataResult>* pRowAry = aData.getConstArray();