[Libreoffice-commits] .: sc/source
Kohei Yoshida
kohei at kemper.freedesktop.org
Fri Nov 26 08:17:48 PST 2010
sc/source/filter/xml/xmlexprt.cxx | 41 --------------------------------------
1 file changed, 41 deletions(-)
New commits:
commit 542ffe27480e802666ede34cda877ca094cc4e8f
Author: Kohei Yoshida <kyoshida at novell.com>
Date: Fri Nov 26 11:16:59 2010 -0500
Removed stack printer definition. Oops.
I didn't intend to check this piece in, sorry.
diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx
index 973b857..bf48b76 100644
--- a/sc/source/filter/xml/xmlexprt.cxx
+++ b/sc/source/filter/xml/xmlexprt.cxx
@@ -170,47 +170,6 @@ using ::rtl::OUStringBuffer;
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::UNO_QUERY;
-#include <stdio.h>
-#include <string>
-#include <osl/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
- {
- TimeValue tv; osl_getSystemTime(&tv);
- return tv.Seconds + tv.Nanosec / 1000000000.0;
- }
-
- ::std::string msMsg;
- double mfStartTime;
-};
-
-}
-
//----------------------------------------------------------------------------
namespace
More information about the Libreoffice-commits
mailing list