diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-11-29 21:06:53 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-11-29 21:29:31 -0500 |
commit | 7a49685adc7e926f320427ee15003acde71053c4 (patch) | |
tree | de1e8caf143fa05135ec5402259177dd1df6bd2c /svtools/source/contnr | |
parent | dcfcf711b6631fd018aa755000d6b93040ae0382 (diff) |
I didn't mean to check this in....
Change-Id: I39738ca7fef022a1c9c728cdcd3fa10429a05564
Diffstat (limited to 'svtools/source/contnr')
-rw-r--r-- | svtools/source/contnr/svimpbox.cxx | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/svtools/source/contnr/svimpbox.cxx b/svtools/source/contnr/svimpbox.cxx index 369fead02d3c..6e602076edf8 100644 --- a/svtools/source/contnr/svimpbox.cxx +++ b/svtools/source/contnr/svimpbox.cxx @@ -39,48 +39,6 @@ #define NODE_BMP_TABDIST_NOTVALID -2000000 #define FIRST_ENTRY_TAB 1 -#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; -}; - -} - // #i27063# (pl), #i32300# (pb) never access VCL after DeInitVCL - also no destructors Image* SvImpLBox::s_pDefCollapsed = NULL; Image* SvImpLBox::s_pDefExpanded = NULL; @@ -642,7 +600,6 @@ void SvImpLBox::RecalcFocusRect() void SvImpLBox::SetCursor( SvTreeListEntry* pEntry, bool bForceNoSelect ) { - stack_printer __stack_printer__("SvImpLBox::SetCursor"); SvViewDataEntry* pViewDataNewCur = 0; if( pEntry ) pViewDataNewCur= pView->GetViewDataEntry(pEntry); @@ -651,7 +608,6 @@ void SvImpLBox::SetCursor( SvTreeListEntry* pEntry, bool bForceNoSelect ) pViewDataNewCur->HasFocus() && pViewDataNewCur->IsSelected()) { - fprintf(stdout, "SvImpLBox::SetCursor: nothing to do\n"); return; } @@ -673,11 +629,9 @@ void SvImpLBox::SetCursor( SvTreeListEntry* pEntry, bool bForceNoSelect ) pCursor = pEntry; if( pCursor ) { - fprintf(stdout, "SvImpLBox::SetCursor: cp (%d)\n", __LINE__); pViewDataNewCur->SetFocus( true ); if(!bForceNoSelect && bSimpleTravel && !(nFlags & F_DESEL_ALL) && GetUpdateMode()) { - fprintf(stdout, "SvImpLBox::SetCursor: cp (%d)\n", __LINE__); pView->Select( pCursor, true ); } // multiple selection: select in cursor move if we're not in @@ -687,12 +641,10 @@ void SvImpLBox::SetCursor( SvTreeListEntry* pEntry, bool bForceNoSelect ) !(nFlags & F_DESEL_ALL) && !aSelEng.IsAddMode() && !bForceNoSelect ) { - fprintf(stdout, "SvImpLBox::SetCursor: cp (%d)\n", __LINE__); pView->Select( pCursor, true ); } else { - fprintf(stdout, "SvImpLBox::SetCursor: cp (%d)\n", __LINE__); ShowCursor( true ); } |