[Libreoffice-commits] core.git: editeng/source unusedcode.easy
Julien Nabet
serval2412 at yahoo.fr
Fri Mar 8 16:59:20 PST 2013
editeng/source/editeng/editobj.cxx | 30 ------------------------------
editeng/source/editeng/editobj2.hxx | 1 -
unusedcode.easy | 1 -
3 files changed, 32 deletions(-)
New commits:
commit 85429fbe773a1c7c2edc144abba5d6ce40b20bdf
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Sat Mar 9 01:56:48 2013 +0100
Remove unused EditTextObjectImpl::RemoveParaAttribs
Change-Id: I3849cbac0e3d08686004775fbe7f749af0bfad62
diff --git a/editeng/source/editeng/editobj.cxx b/editeng/source/editeng/editobj.cxx
index 394daf2..64d8e5d 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 ef213f0..5c59050 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 858a692..89b49ba 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&)
More information about the Libreoffice-commits
mailing list