summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2021-07-06 12:25:05 +0200
committerEike Rathke <erack@redhat.com>2021-07-06 14:25:49 +0200
commit6e0b7d2aad6f1a041dd9e0e28aa4bf27eb3fc077 (patch)
tree3d1bc609e5cf3e6e34bca205f3d765398a7501f7 /unotools
parent72541a46aa26194b751785cd56185c8d3db0c9e9 (diff)
Remove now unused LocaleDataWrapper::getLongDate()
Change-Id: I8e9614a4d77aa8b0c0e68a248ea57f921e3ed424 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118476 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/i18n/localedatawrapper.cxx40
1 files changed, 0 insertions, 40 deletions
diff --git a/unotools/source/i18n/localedatawrapper.cxx b/unotools/source/i18n/localedatawrapper.cxx
index 2bb6769c51ed..9765cec1062a 100644
--- a/unotools/source/i18n/localedatawrapper.cxx
+++ b/unotools/source/i18n/localedatawrapper.cxx
@@ -1160,46 +1160,6 @@ OUString LocaleDataWrapper::getTime( const tools::Time& rTime, bool bSec, bool b
return aBuf.makeStringAndClear();
}
-OUString LocaleDataWrapper::getLongDate( const Date& rDate, CalendarWrapper& rCal,
- bool bTwoDigitYear ) const
-{
- OUStringBuffer aBuf(20);
- OUStringBuffer aStr(120); // complete guess
- sal_Int16 nVal;
- rCal.setGregorianDateTime( rDate );
- // day of week
- nVal = rCal.getValue( CalendarFieldIndex::DAY_OF_WEEK );
- aStr.append(rCal.getDisplayName( CalendarDisplayIndex::DAY, nVal, 1 ));
- aStr.append(aLocaleDataItem.LongDateDayOfWeekSeparator);
- // day of month
- nVal = rCal.getValue( CalendarFieldIndex::DAY_OF_MONTH );
- ImplAdd2UNum( aBuf, nVal, false/*bDayOfMonthWithLeadingZero*/ );
- OUString aDay = aBuf.makeStringAndClear();
- // month of year
- nVal = rCal.getValue( CalendarFieldIndex::MONTH );
- OUString aMonth( rCal.getDisplayName( CalendarDisplayIndex::MONTH, nVal, 1 ) );
- // year
- nVal = rCal.getValue( CalendarFieldIndex::YEAR );
- if ( bTwoDigitYear )
- ImplAddUNum( aBuf, nVal % 100, 2 );
- else
- ImplAddUNum( aBuf, nVal );
- OUString aYear = aBuf.makeStringAndClear();
- // concatenate
- switch ( getLongDateOrder() )
- {
- case DateOrder::DMY :
- aStr.append(aDay + aLocaleDataItem.LongDateDaySeparator + aMonth + aLocaleDataItem.LongDateMonthSeparator + aYear);
- break;
- case DateOrder::MDY :
- aStr.append(aMonth + aLocaleDataItem.LongDateMonthSeparator + aDay + aLocaleDataItem.LongDateDaySeparator + aYear);
- break;
- default: // YMD
- aStr.append(aYear + aLocaleDataItem.LongDateYearSeparator + aMonth + aLocaleDataItem.LongDateMonthSeparator + aDay);
- }
- return aStr.makeStringAndClear();
-}
-
OUString LocaleDataWrapper::getDuration( const tools::Time& rTime, bool bSec, bool b100Sec ) const
{
OUStringBuffer aBuf(128);