diff options
author | Elton Chung <elton@layerjet.com> | 2012-02-10 14:53:32 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-02-10 15:42:53 +0000 |
commit | ea1fa6963d1f45130a3dc3d635e5b37120bf364b (patch) | |
tree | faf9361fae977f504e9d4ce795c3f6225bff67fb /unotools | |
parent | 4e022ca124bbedfc6464f67edd11f3edd51d24e8 (diff) |
Remove unused code
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/inc/unotools/calendarwrapper.hxx | 2 | ||||
-rw-r--r-- | unotools/inc/unotools/localedatawrapper.hxx | 2 | ||||
-rw-r--r-- | unotools/inc/unotools/nativenumberwrapper.hxx | 4 | ||||
-rw-r--r-- | unotools/source/i18n/calendarwrapper.cxx | 28 | ||||
-rw-r--r-- | unotools/source/i18n/localedatawrapper.cxx | 30 | ||||
-rw-r--r-- | unotools/source/i18n/nativenumberwrapper.cxx | 18 |
6 files changed, 0 insertions, 84 deletions
diff --git a/unotools/inc/unotools/calendarwrapper.hxx b/unotools/inc/unotools/calendarwrapper.hxx index bab43e9522e4..26c370cdb93c 100644 --- a/unotools/inc/unotools/calendarwrapper.hxx +++ b/unotools/inc/unotools/calendarwrapper.hxx @@ -87,8 +87,6 @@ public: sal_Int16 getValue( sal_Int16 nFieldIndex ) const; void addValue( sal_Int16 nFieldIndex, sal_Int32 nAmount ); sal_Int16 getFirstDayOfWeek() const; - void setFirstDayOfWeek( sal_Int16 nDay ); - void setMinimumNumberOfDaysForFirstWeek( sal_Int16 nDays ); sal_Int16 getNumberOfMonthsInYear() const; sal_Int16 getNumberOfDaysInWeek() const; String getDisplayName( sal_Int16 nCalendarDisplayIndex, sal_Int16 nIdx, sal_Int16 nNameType ) const; diff --git a/unotools/inc/unotools/localedatawrapper.hxx b/unotools/inc/unotools/localedatawrapper.hxx index 2f4186f0044a..14ba39e69694 100644 --- a/unotools/inc/unotools/localedatawrapper.hxx +++ b/unotools/inc/unotools/localedatawrapper.hxx @@ -158,8 +158,6 @@ public: /// NOTE: this wraps XLocaleData2::getAllCurrencies2() in fact. ::com::sun::star::uno::Sequence< ::com::sun::star::i18n::Currency2 > getAllCurrencies() const; ::com::sun::star::uno::Sequence< ::com::sun::star::i18n::FormatElement > getAllFormats() const; - ::com::sun::star::uno::Sequence< ::com::sun::star::i18n::Implementation > getCollatorImplementations() const; - ::com::sun::star::uno::Sequence< ::rtl::OUString > getTransliterations() const; ::com::sun::star::i18n::ForbiddenCharacters getForbiddenCharacters() const; ::com::sun::star::uno::Sequence< ::rtl::OUString > getReservedWord() const; ::com::sun::star::uno::Sequence< ::com::sun::star::lang::Locale > getAllInstalledLocaleNames() const; diff --git a/unotools/inc/unotools/nativenumberwrapper.hxx b/unotools/inc/unotools/nativenumberwrapper.hxx index 99acc411080b..b6c589ff2c56 100644 --- a/unotools/inc/unotools/nativenumberwrapper.hxx +++ b/unotools/inc/unotools/nativenumberwrapper.hxx @@ -60,10 +60,6 @@ public: const ::com::sun::star::lang::Locale& rLocale, sal_Int16 nNativeNumberMode ) const; - sal_Bool isValidNatNum( - const ::com::sun::star::lang::Locale& rLocale, - sal_Int16 nNativeNumberMode ) const; - ::com::sun::star::i18n::NativeNumberXmlAttributes convertToXmlAttributes( const ::com::sun::star::lang::Locale& rLocale, sal_Int16 nNativeNumberMode ) const; diff --git a/unotools/source/i18n/calendarwrapper.cxx b/unotools/source/i18n/calendarwrapper.cxx index 23390f958432..ad781428aac7 100644 --- a/unotools/source/i18n/calendarwrapper.cxx +++ b/unotools/source/i18n/calendarwrapper.cxx @@ -333,34 +333,6 @@ sal_Int16 CalendarWrapper::getFirstDayOfWeek() const } -void CalendarWrapper::setFirstDayOfWeek( sal_Int16 nDay ) -{ - try - { - if ( xC.is() ) - xC->setFirstDayOfWeek( nDay ); - } - catch (const Exception& e) - { - SAL_WARN( "unotools.i18n", "setFirstDayOfWeek: Exception caught " << e.Message ); - } -} - - -void CalendarWrapper::setMinimumNumberOfDaysForFirstWeek( sal_Int16 nDays ) -{ - try - { - if ( xC.is() ) - xC->setMinimumNumberOfDaysForFirstWeek( nDays ); - } - catch (const Exception& e) - { - SAL_WARN( "unotools.i18n", "setMinimumNumberOfDaysForFirstWeek: Exception caught " << e.Message ); - } -} - - sal_Int16 CalendarWrapper::getNumberOfMonthsInYear() const { try diff --git a/unotools/source/i18n/localedatawrapper.cxx b/unotools/source/i18n/localedatawrapper.cxx index 12aa78d3151d..9d55ce38b31c 100644 --- a/unotools/source/i18n/localedatawrapper.cxx +++ b/unotools/source/i18n/localedatawrapper.cxx @@ -198,36 +198,6 @@ void LocaleDataWrapper::invalidateData() } -::com::sun::star::uno::Sequence< ::com::sun::star::i18n::Implementation > LocaleDataWrapper::getCollatorImplementations() const -{ - try - { - if ( xLD.is() ) - return xLD->getCollatorImplementations( getLocale() ); - } - catch (const Exception& e) - { - SAL_WARN( "unotools.i18n", "getCollatorImplementations: Exception caught " << e.Message ); - } - return ::com::sun::star::uno::Sequence< ::com::sun::star::i18n::Implementation >(0); -} - - -::com::sun::star::uno::Sequence< ::rtl::OUString > LocaleDataWrapper::getTransliterations() const -{ - try - { - if ( xLD.is() ) - return xLD->getTransliterations( getLocale() ); - } - catch (const Exception& e) - { - SAL_WARN( "unotools.i18n", "getTransliterations: Exception caught " << e.Message ); - } - return ::com::sun::star::uno::Sequence< ::rtl::OUString >(0); -} - - ::com::sun::star::i18n::ForbiddenCharacters LocaleDataWrapper::getForbiddenCharacters() const { try diff --git a/unotools/source/i18n/nativenumberwrapper.cxx b/unotools/source/i18n/nativenumberwrapper.cxx index d95635514cdd..1f1c682a683b 100644 --- a/unotools/source/i18n/nativenumberwrapper.cxx +++ b/unotools/source/i18n/nativenumberwrapper.cxx @@ -70,24 +70,6 @@ NativeNumberWrapper::getNativeNumberString( } -sal_Bool -NativeNumberWrapper::isValidNatNum( - const ::com::sun::star::lang::Locale& rLocale, - sal_Int16 nNativeNumberMode ) const -{ - try - { - if ( xNNS.is() ) - return xNNS->isValidNatNum( rLocale, nNativeNumberMode ); - } - catch ( const uno::Exception& ) - { - SAL_WARN( "unotools.i18n", "isValidNatNum: Exception caught!" ); - } - return sal_False; -} - - i18n::NativeNumberXmlAttributes NativeNumberWrapper::convertToXmlAttributes( const ::com::sun::star::lang::Locale& rLocale, |