From 37159db96ff0ce15b0b91502ba79a86f21a8f29a Mon Sep 17 00:00:00 2001 From: Petr Vorel Date: Sat, 18 Feb 2012 23:50:22 +0100 Subject: Remove unused code --- unotools/inc/unotools/numberformatcodewrapper.hxx | 1 - unotools/source/i18n/numberformatcodewrapper.cxx | 16 ---------------- 2 files changed, 17 deletions(-) (limited to 'unotools') diff --git a/unotools/inc/unotools/numberformatcodewrapper.hxx b/unotools/inc/unotools/numberformatcodewrapper.hxx index f0bf53f5da55..9adb59d80751 100644 --- a/unotools/inc/unotools/numberformatcodewrapper.hxx +++ b/unotools/inc/unotools/numberformatcodewrapper.hxx @@ -67,7 +67,6 @@ public: // Wrapper implementations of class NumberFormatCodeMapper - ::com::sun::star::i18n::NumberFormatCode getDefault( sal_Int16 nFormatType, sal_Int16 nFormatUsage ) const; ::com::sun::star::i18n::NumberFormatCode getFormatCode( sal_Int16 nFormatIndex ) const; ::com::sun::star::uno::Sequence< ::com::sun::star::i18n::NumberFormatCode > getAllFormatCode( sal_Int16 nFormatUsage ) const; ::com::sun::star::uno::Sequence< ::com::sun::star::i18n::NumberFormatCode > getAllFormatCodes() const; diff --git a/unotools/source/i18n/numberformatcodewrapper.cxx b/unotools/source/i18n/numberformatcodewrapper.cxx index f341f2f476d5..759352f6a862 100644 --- a/unotools/source/i18n/numberformatcodewrapper.cxx +++ b/unotools/source/i18n/numberformatcodewrapper.cxx @@ -62,22 +62,6 @@ void NumberFormatCodeWrapper::setLocale( const ::com::sun::star::lang::Locale& r } -::com::sun::star::i18n::NumberFormatCode -NumberFormatCodeWrapper::getDefault( sal_Int16 formatType, sal_Int16 formatUsage ) const -{ - try - { - if ( xNFC.is() ) - return xNFC->getDefault( formatType, formatUsage, aLocale ); - } - catch ( const Exception& ) - { - SAL_WARN( "unotools.i18n", "getDefault: Exception caught!" ); - } - return ::com::sun::star::i18n::NumberFormatCode(); -} - - ::com::sun::star::i18n::NumberFormatCode NumberFormatCodeWrapper::getFormatCode( sal_Int16 formatIndex ) const { -- cgit