diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-07-27 20:09:09 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-07-27 20:09:47 -0400 |
commit | 5672babacd79a76cfdb600fcb10c3f2ba0c34771 (patch) | |
tree | 56c5a51290c52576afc35288cded73bca3d91a59 /sc/source/ui/unoobj/scdetect.cxx | |
parent | 6b8e2a8194f41550c135a4b67580130aceb3d981 (diff) |
Remove debug stuff.
Change-Id: I5bade81590c12eabba9a8033357bf00e9bb59f02
Diffstat (limited to 'sc/source/ui/unoobj/scdetect.cxx')
-rw-r--r-- | sc/source/ui/unoobj/scdetect.cxx | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/sc/source/ui/unoobj/scdetect.cxx b/sc/source/ui/unoobj/scdetect.cxx index be11ace1dc4c..b424cf80712c 100644 --- a/sc/source/ui/unoobj/scdetect.cxx +++ b/sc/source/ui/unoobj/scdetect.cxx @@ -71,48 +71,6 @@ using namespace ::com::sun::star::beans; using namespace ::com::sun::star::lang; using namespace ::com::sun::star::ucb; -#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; -}; - -} - ScFilterDetect::ScFilterDetect( const uno::Reference<uno::XComponentContext>& /*xContext*/ ) { } @@ -259,7 +217,6 @@ static sal_Bool lcl_MayBeDBase( SvStream& rStream ) OUString SAL_CALL ScFilterDetect::detect( uno::Sequence<beans::PropertyValue>& lDescriptor ) throw( uno::RuntimeException ) { - stack_printer __stack_printer__("ScFilterDetect::detect"); uno::Reference< XInputStream > xStream; uno::Reference< XContent > xContent; uno::Reference< XInteractionHandler > xInteraction; |