diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2015-02-15 11:58:31 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2015-02-15 12:02:05 +0100 |
commit | 836481e35999c3722f1c4fdef8c86c8c098a2492 (patch) | |
tree | 0c10e16ea6d96a22959758751b84944466185302 /unotools | |
parent | a0956d3960422c6804a749ababc58964522f8d66 (diff) |
unusedcode.easy
Remove getZoneOffsetInMillis, getDSTOffsetInMillis
+ getCombinedOffsetInMillis
Change-Id: I7bf5b3e9e2e84c2f0add263083d6e7e9057db8ac
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/i18n/calendarwrapper.cxx | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/unotools/source/i18n/calendarwrapper.cxx b/unotools/source/i18n/calendarwrapper.cxx index 2f861fb1ee1a..56695abf01bc 100644 --- a/unotools/source/i18n/calendarwrapper.cxx +++ b/unotools/source/i18n/calendarwrapper.cxx @@ -122,41 +122,6 @@ double CalendarWrapper::getDateTime() const return 0.0; } -sal_Int32 CalendarWrapper::getCombinedOffsetInMillis( - sal_Int16 nParentFieldIndex, sal_Int16 nChildFieldIndex ) const -{ - sal_Int32 nOffset = 0; - try - { - if ( xC.is() ) - { - nOffset = static_cast<sal_Int32>( xC->getValue( nParentFieldIndex )) * 60000; - sal_Int16 nSecondMillis = xC->getValue( nChildFieldIndex ); - if (nOffset < 0) - nOffset -= static_cast<sal_uInt16>( nSecondMillis); - else - nOffset += static_cast<sal_uInt16>( nSecondMillis); - } - } - catch (const Exception& e) - { - SAL_WARN( "unotools.i18n", "getCombinedOffsetInMillis: Exception caught " << e.Message ); - } - return nOffset; -} - -sal_Int32 CalendarWrapper::getZoneOffsetInMillis() const -{ - return getCombinedOffsetInMillis( CalendarFieldIndex::ZONE_OFFSET, - CalendarFieldIndex::ZONE_OFFSET_SECOND_MILLIS); -} - -sal_Int32 CalendarWrapper::getDSTOffsetInMillis() const -{ - return getCombinedOffsetInMillis( CalendarFieldIndex::DST_OFFSET, - CalendarFieldIndex::DST_OFFSET_SECOND_MILLIS); -} - void CalendarWrapper::setLocalDateTime( double fTimeInDays ) { try |