[Libreoffice-commits] .: sc/source

Kohei Yoshida kohei at kemper.freedesktop.org
Mon Nov 15 11:57:01 PST 2010


 sc/source/ui/view/viewfun3.cxx |   43 -----------------------------------------
 1 file changed, 43 deletions(-)

New commits:
commit d48c9c4c1956585532c640e61178ee395b174993
Author: Kohei Yoshida <kyoshida at novell.com>
Date:   Mon Nov 15 14:56:54 2010 -0500

    Revert "initial debug statement"
    
    This reverts commit a256e7bae190cdddcba720cc3b59647ca2d111f5.

diff --git a/sc/source/ui/view/viewfun3.cxx b/sc/source/ui/view/viewfun3.cxx
index 973fd20..e374252 100644
--- a/sc/source/ui/view/viewfun3.cxx
+++ b/sc/source/ui/view/viewfun3.cxx
@@ -215,48 +215,6 @@
 
 using namespace com::sun::star;
 
-#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;
-};
-
-}
-
 // STATIC DATA ---------------------------------------------------------------
 
 
@@ -1019,7 +977,6 @@ BOOL ScViewFunc::PasteFromClip( USHORT nFlags, ScDocument* pClipDoc,
                                     InsCellCmd eMoveMode, USHORT nUndoExtraFlags,
                                     BOOL bAllowDialogs )
 {
-    StackPrinter __stack_printer__("ScViewFunc::PasteFromClip");
     if (!pClipDoc)
     {
         DBG_ERROR("PasteFromClip: pClipDoc=0 not allowed");


More information about the Libreoffice-commits mailing list