From bfcaa777c4a803c21208c8aeb8f2674943b243fb Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 15 Jul 2012 22:27:46 +0100 Subject: callcatcher: update unused code list Change-Id: I045ac2928d4b8cf99f9f76c20a9e489adc34ed66 --- connectivity/inc/connectivity/dbconversion.hxx | 3 --- connectivity/source/commontools/dbconversion.cxx | 23 ----------------------- 2 files changed, 26 deletions(-) (limited to 'connectivity') diff --git a/connectivity/inc/connectivity/dbconversion.hxx b/connectivity/inc/connectivity/dbconversion.hxx index 0f164146fcd1..78df8d04a0ff 100644 --- a/connectivity/inc/connectivity/dbconversion.hxx +++ b/connectivity/inc/connectivity/dbconversion.hxx @@ -115,9 +115,6 @@ namespace dbtools static ::com::sun::star::util::DateTime toDateTime(const ::rtl::OUString& _sSQLDate); - /** return the given DateTime as JDBC compliant 64 bit value - */ - static sal_Int64 toINT64(const ::com::sun::star::util::DateTime& rVal); static sal_Int32 getMsFromTime(const ::com::sun::star::util::Time& rVal); static sal_Int32 toDays(const ::com::sun::star::util::Date& _rVal, const ::com::sun::star::util::Date& _rNullDate = getStandardDate()); diff --git a/connectivity/source/commontools/dbconversion.cxx b/connectivity/source/commontools/dbconversion.cxx index bed868ce9ae1..087495d26fc1 100644 --- a/connectivity/source/commontools/dbconversion.cxx +++ b/connectivity/source/commontools/dbconversion.cxx @@ -136,29 +136,6 @@ namespace dbtools return (sal_Int32)(nHundredthSeconds + (nSeconds*100) + (nMinutes*10000) + (nHours*1000000)); } - //------------------------------------------------------------------------------ - sal_Int64 DBTypeConversion::toINT64(const DateTime& rVal) - { - // normalize time - sal_Int32 nSeconds = rVal.Seconds + rVal.HundredthSeconds / 100; - sal_Int32 nHundredthSeconds = rVal.HundredthSeconds % 100; - sal_Int32 nMinutes = rVal.Minutes + nSeconds / 60; - nSeconds = nSeconds % 60; - sal_Int32 nHours = rVal.Hours + nMinutes / 60; - nMinutes = nMinutes % 60; - - // assemble time - sal_Int32 nTime = (sal_Int32)(nHundredthSeconds + (nSeconds*100) + (nMinutes*10000) + (nHours*1000000)); - sal_Int32 nDate = ((sal_Int32)(rVal.Day%100)) + (((sal_Int32)(rVal.Month%100))*100) + (((sal_Int32) rVal.Year%10000)*10000); - sal_Int64 nRet; - - nRet = (sal_Int64) nTime; - nRet <<= 32; - nRet += nDate; - - return nRet; - } - //------------------------------------------------------------------------------ sal_Int32 DBTypeConversion::getMsFromTime(const Time& rVal) { -- cgit