summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-07-15 22:27:46 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-07-15 22:36:52 +0100
commitbfcaa777c4a803c21208c8aeb8f2674943b243fb (patch)
tree79e44c6f0456d4797826a57edace92c47ef08948 /connectivity
parent5e21857cd4f81ccf0c87a3f399adf29aac3a68d6 (diff)
callcatcher: update unused code list
Change-Id: I045ac2928d4b8cf99f9f76c20a9e489adc34ed66
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/inc/connectivity/dbconversion.hxx3
-rw-r--r--connectivity/source/commontools/dbconversion.cxx23
2 files changed, 0 insertions, 26 deletions
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
@@ -137,29 +137,6 @@ namespace dbtools
}
//------------------------------------------------------------------------------
- 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)
{
sal_Int32 nHour = rVal.Hours;