diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-03-09 01:56:48 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-03-09 01:56:48 +0100 |
commit | 85429fbe773a1c7c2edc144abba5d6ce40b20bdf (patch) | |
tree | 0d2f3c731e2f6c60564de27badf4d49785c9dad3 | |
parent | a0296296fb121ecab53cee39658fc2f8ce27a782 (diff) |
Remove unused EditTextObjectImpl::RemoveParaAttribs
Change-Id: I3849cbac0e3d08686004775fbe7f749af0bfad62
-rw-r--r-- | editeng/source/editeng/editobj.cxx | 30 | ||||
-rw-r--r-- | editeng/source/editeng/editobj2.hxx | 1 | ||||
-rw-r--r-- | unusedcode.easy | 1 |
3 files changed, 0 insertions, 32 deletions
diff --git a/editeng/source/editeng/editobj.cxx b/editeng/source/editeng/editobj.cxx index 394daf2979b5..64d8e5dc256a 100644 --- a/editeng/source/editeng/editobj.cxx +++ b/editeng/source/editeng/editobj.cxx @@ -767,36 +767,6 @@ bool EditTextObjectImpl::RemoveCharAttribs( sal_uInt16 _nWhich ) return bChanged; } -bool EditTextObjectImpl::RemoveParaAttribs( sal_uInt16 _nWhich ) -{ - bool bChanged = false; - - for (size_t nPara = aContents.size(); nPara; ) - { - ContentInfo& rC = aContents[--nPara]; - - if ( !_nWhich ) - { - if (rC.GetParaAttribs().Count()) - bChanged = true; - rC.GetParaAttribs().ClearItem(); - } - else - { - if (rC.GetParaAttribs().GetItemState(_nWhich) == SFX_ITEM_ON) - { - rC.GetParaAttribs().ClearItem(_nWhich); - bChanged = true; - } - } - } - - if ( bChanged ) - ClearPortionInfo(); - - return bChanged; -} - void EditTextObjectImpl::GetStyleSheet(size_t nPara, String& rName, SfxStyleFamily& rFamily) const { if (nPara >= aContents.size()) diff --git a/editeng/source/editeng/editobj2.hxx b/editeng/source/editeng/editobj2.hxx index ef213f0bfb68..5c5905023887 100644 --- a/editeng/source/editeng/editobj2.hxx +++ b/editeng/source/editeng/editobj2.hxx @@ -218,7 +218,6 @@ public: void GetCharAttribs( sal_uInt16 nPara, std::vector<EECharAttrib>& rLst ) const; bool RemoveCharAttribs( sal_uInt16 nWhich = 0 ); - bool RemoveParaAttribs( sal_uInt16 nWhich = 0 ); bool IsFieldObject() const; const SvxFieldItem* GetField() const; diff --git a/unusedcode.easy b/unusedcode.easy index 858a69247164..89b49baf0cad 100644 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -1,5 +1,4 @@ Application::PostZoomEvent(unsigned long, Window*, ZoomEvent*) -EditTextObjectImpl::RemoveParaAttribs(unsigned short) EditTextObjectImpl::SetParaAttribs(unsigned long, SfxItemSet const&) FontSelectPatternAttributes::FontSelectPatternAttributes(PhysicalFontFace const&, Size const&, float, int, bool) LanguageTag::reset(_rtl_Locale const&) |