diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-01-11 22:38:31 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-01-12 10:47:09 +0000 |
commit | 284482072ddb2be95e28e0138829554002e4fe79 (patch) | |
tree | b2cdc4fe086c78ca85f3a5465d9a5f78be3faa77 /editeng | |
parent | 0d7932327bf221b5132f0c84b25c67deb4cd904b (diff) |
valgrind: ditch some unused code
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/inc/editeng/unofdesc.hxx | 1 | ||||
-rw-r--r-- | editeng/source/uno/unofdesc.cxx | 24 |
2 files changed, 0 insertions, 25 deletions
diff --git a/editeng/inc/editeng/unofdesc.hxx b/editeng/inc/editeng/unofdesc.hxx index 8a4af581a4f8..fb98d7f24844 100644 --- a/editeng/inc/editeng/unofdesc.hxx +++ b/editeng/inc/editeng/unofdesc.hxx @@ -44,7 +44,6 @@ public: static void FillItemSet( const ::com::sun::star::awt::FontDescriptor& rDesc, SfxItemSet& rSet ); static void FillFromItemSet( const SfxItemSet& rSet, ::com::sun::star::awt::FontDescriptor& rDesc ); - static com::sun::star::beans::PropertyState getPropertyState( const SfxItemSet& rSet ); static void setPropertyToDefault( SfxItemSet& rSet ); static ::com::sun::star::uno::Any getPropertyDefault( SfxItemPool* pPool ); diff --git a/editeng/source/uno/unofdesc.cxx b/editeng/source/uno/unofdesc.cxx index 2f2d485bb367..ae9981dfd348 100644 --- a/editeng/source/uno/unofdesc.cxx +++ b/editeng/source/uno/unofdesc.cxx @@ -186,30 +186,6 @@ void SvxUnoFontDescriptor::FillFromItemSet( const SfxItemSet& rSet, awt::FontDes } } -#define CheckState( state ) \ - switch( state ) \ - { \ - case SFX_ITEM_DONTCARE: \ - case SFX_ITEM_DISABLED: \ - return beans::PropertyState_AMBIGUOUS_VALUE; \ - case SFX_ITEM_READONLY: \ - case SFX_ITEM_SET: \ - return beans::PropertyState_DIRECT_VALUE; \ - } - -beans::PropertyState SvxUnoFontDescriptor::getPropertyState( const SfxItemSet& rSet ) -{ - CheckState(rSet.GetItemState( EE_CHAR_FONTINFO, sal_False )); - CheckState(rSet.GetItemState( EE_CHAR_FONTHEIGHT, sal_False )); - CheckState(rSet.GetItemState( EE_CHAR_ITALIC, sal_False )); - CheckState(rSet.GetItemState( EE_CHAR_UNDERLINE, sal_False )); - CheckState(rSet.GetItemState( EE_CHAR_WEIGHT, sal_False )); - CheckState(rSet.GetItemState( EE_CHAR_STRIKEOUT, sal_False )); - CheckState(rSet.GetItemState( EE_CHAR_WLM, sal_False )); - - return beans::PropertyState_DEFAULT_VALUE; -} - void SvxUnoFontDescriptor::setPropertyToDefault( SfxItemSet& rSet ) { rSet.InvalidateItem( EE_CHAR_FONTINFO ); |