diff options
author | Noel Grandin <noel@peralex.com> | 2016-01-19 15:17:30 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-01-20 08:13:51 +0000 |
commit | 4ff5a5558472beee85eb1234dcc2aa2ed9000f6c (patch) | |
tree | b2a0a83933064b7a22db0e27c0a3d8b7339053de /editeng | |
parent | 3179e8f7e6ce550bbe766ed730e68b0374944dd5 (diff) |
loplugin:unusedmethods
Change-Id: Ib2dc804f55d1a96ae01f2cf31b7d55956040a72e
Reviewed-on: https://gerrit.libreoffice.org/21603
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/editobj.cxx | 20 | ||||
-rw-r--r-- | editeng/source/editeng/editobj2.hxx | 12 |
2 files changed, 0 insertions, 32 deletions
diff --git a/editeng/source/editeng/editobj.cxx b/editeng/source/editeng/editobj.cxx index f12c68ea5341..8ab97dfb3d47 100644 --- a/editeng/source/editeng/editobj.cxx +++ b/editeng/source/editeng/editobj.cxx @@ -206,26 +206,6 @@ void ContentInfo::Dump() const } #endif -bool ContentInfo::operator==( const ContentInfo& rCompare ) const -{ - if( (maText == rCompare.maText) && - (aStyle == rCompare.aStyle ) && - (aAttribs.size() == rCompare.aAttribs.size()) && - (eFamily == rCompare.eFamily ) && - (aParaAttribs == rCompare.aParaAttribs ) ) - { - for (size_t i = 0, n = aAttribs.size(); i < n; ++i) - { - if (aAttribs[i] != rCompare.aAttribs[i]) - return false; - } - - return true; - } - - return false; -} - EditTextObject::EditTextObject( SfxItemPool* pPool ) : mpImpl(new EditTextObjectImpl(this, pPool)) { diff --git a/editeng/source/editeng/editobj2.hxx b/editeng/source/editeng/editobj2.hxx index aa8b248c4449..6f9fae2d6076 100644 --- a/editeng/source/editeng/editobj2.hxx +++ b/editeng/source/editeng/editobj2.hxx @@ -69,19 +69,8 @@ public: bool IsFeature() const; void SetItem(const SfxPoolItem& rNew); - - inline bool operator==( const XEditAttribute& rCompare ) const; }; -inline bool XEditAttribute::operator==( const XEditAttribute& rCompare ) const -{ - return (nStart == rCompare.nStart) && - (nEnd == rCompare.nEnd) && - ( (pItem == rCompare.pItem) || - ( pItem->Which() != rCompare.pItem->Which()) || - (*pItem == *rCompare.pItem)); -} - struct XParaPortion { long nHeight; @@ -157,7 +146,6 @@ public: const WrongList* GetWrongList() const; void SetWrongList( WrongList* p ); - bool operator==( const ContentInfo& rCompare ) const; // #i102062# bool isWrongListEqual(const ContentInfo& rCompare) const; |