Kaydet (Commit) e296b3d2 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Remove debug code. This wasn't meant to be checked in.

Change-Id: I3bd8ab784d9af295b61555a3ed775097270b90bf
üst a205b856
...@@ -41,48 +41,6 @@ ...@@ -41,48 +41,6 @@
using namespace com::sun::star; using namespace com::sun::star;
#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;
};
}
namespace sdr namespace sdr
{ {
namespace contact namespace contact
...@@ -137,7 +95,6 @@ namespace sdr ...@@ -137,7 +95,6 @@ namespace sdr
// From baseclass Timer, the timeout call triggered by the LazyInvalidate mechanism // From baseclass Timer, the timeout call triggered by the LazyInvalidate mechanism
void ObjectContactOfPageView::Timeout() void ObjectContactOfPageView::Timeout()
{ {
stack_printer __stack_printer__( "sdr/contact/ObjectContactOfPageView::Timeout" );
// stop the timer // stop the timer
Stop(); Stop();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment