diff options
author | Marcos Paulo de Souza <marcos.souza.org@gmail.com> | 2013-08-31 13:10:23 -0300 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-09-01 09:15:44 +0000 |
commit | 1d3483ed279982278b2f9fb1bab63485523e48c5 (patch) | |
tree | 449e6a4b8999e0ba54359b4b8d26a32e819942ad /connectivity | |
parent | 92ce8daf21f2081eca9b4f4294115b904c168a46 (diff) |
Remove some unused code from unusedcode.easy
Change-Id: Ic3e96eebbb914c5b905a8c58532ead9cb01dd41d
Reviewed-on: https://gerrit.libreoffice.org/5721
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/commontools/dbconversion.cxx | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/connectivity/source/commontools/dbconversion.cxx b/connectivity/source/commontools/dbconversion.cxx index cd2b1c3d1a3e..1449b99779ce 100644 --- a/connectivity/source/commontools/dbconversion.cxx +++ b/connectivity/source/commontools/dbconversion.cxx @@ -136,44 +136,6 @@ namespace dbtools return aReturn; } - //------------------------------------------------------------------------------ - sal_Int32 DBTypeConversion::toINT32(const utl::Date& rVal) - { - return ((sal_Int32)(rVal.Day%100)) + - (((sal_Int32)(rVal.Month%100))*100) + - (((sal_Int32) rVal.Year%10000)*10000); - } - - //------------------------------------------------------------------------------ - sal_Int64 DBTypeConversion::toINT64(const utl::Time& rVal) - { - // normalize time - sal_Int32 nSeconds = rVal.Seconds + rVal.NanoSeconds / nanoSecInSec; - sal_Int32 nNanoSeconds = rVal.NanoSeconds % nanoSecInSec; - sal_Int32 nMinutes = rVal.Minutes + nSeconds / secInMin; - nSeconds = nSeconds % secInMin; - sal_Int32 nHours = rVal.Hours + nMinutes / minInHour; - nMinutes = nMinutes % minInHour; - - // assemble time - return nNanoSeconds + - nSeconds * secMask + - nMinutes * minMask + - nHours * hourMask; - } - - //------------------------------------------------------------------------------ - sal_Int32 DBTypeConversion::getMsFromTime(const utl::Time& rVal) - { - sal_Int32 nHour = rVal.Hours; - sal_Int32 nMin = rVal.Minutes; - sal_Int32 nSec = rVal.Seconds; - sal_Int32 nNanoSec = rVal.NanoSeconds; - - return ((nHour*3600000)+(nMin*60000)+(nSec*1000)+(nNanoSec/1000000)); - } - - //------------------------------------------------------------------------------ sal_Int64 DBTypeConversion::getNsFromTime(const utl::Time& rVal) { sal_Int32 nHour = rVal.Hours; |