summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-11-13 23:21:10 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-11-14 10:11:32 +0000
commit7768cbe901d7f7af85c74ff506eb442b2205e5fa (patch)
tree09faf987587361679f11807d16ee01b0ea676388 /sc/source
parentc17f51c74ce8ef4fc4827766ce9c1c338a3e54c4 (diff)
callcatcher: neither setNumberFormat is used
Change-Id: I782eace543ae5618004c61b9b84a0646cc463df6
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/ui/vba/vbaformat.cxx20
-rw-r--r--sc/source/ui/vba/vbaformat.hxx1
2 files changed, 0 insertions, 21 deletions
diff --git a/sc/source/ui/vba/vbaformat.cxx b/sc/source/ui/vba/vbaformat.cxx
index 5688021719b6..e46bb925e33e 100644
--- a/sc/source/ui/vba/vbaformat.cxx
+++ b/sc/source/ui/vba/vbaformat.cxx
@@ -401,26 +401,6 @@ ScVbaFormat<Ifc1>::getNumberFormatLocal( ) throw (script::BasicErrorException,
}
template< typename Ifc1 >
-void
-ScVbaFormat<Ifc1>::setNumberFormat( lang::Locale _aLocale, const rtl::OUString& _sFormatString) throw( script::BasicErrorException )
-{
- try
- {
- initializeNumberFormats();
- sal_Int32 nFormat = xNumberFormats->queryKey(_sFormatString, _aLocale , sal_True);
- if (nFormat == -1)
- {
- xNumberFormats->addNew(_sFormatString, _aLocale);
- }
- mxPropertySet->setPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( SC_UNO_DP_NUMBERFO ) ), uno::makeAny( nFormat ) );
- }
- catch (const uno::Exception& )
- {
- DebugHelper::exception(SbERR_METHOD_FAILED, rtl::OUString());
- }
-}
-
-template< typename Ifc1 >
void SAL_CALL
ScVbaFormat<Ifc1>::setNumberFormatLocal( const uno::Any& _oLocalFormatString ) throw (script::BasicErrorException, uno::RuntimeException)
{
diff --git a/sc/source/ui/vba/vbaformat.hxx b/sc/source/ui/vba/vbaformat.hxx
index f5520116631b..861bc871774e 100644
--- a/sc/source/ui/vba/vbaformat.hxx
+++ b/sc/source/ui/vba/vbaformat.hxx
@@ -62,7 +62,6 @@ protected:
bool isAmbiguous(const rtl::OUString& _sPropertyName) throw ( css::script::BasicErrorException );
css::uno::Reference< css::beans::XPropertyState > getXPropertyState() throw ( css::uno::RuntimeException );
void initializeNumberFormats() throw ( css::script::BasicErrorException );
- void setNumberFormat( css::lang::Locale _aLocale, const rtl::OUString& _sFormatString) throw( css::script::BasicErrorException );
SfxItemSet* getCurrentDataSet( ) throw ( css::uno::RuntimeException );
protected:
virtual ScCellRangesBase* getCellRangesBase() throw ( css::uno::RuntimeException );