diff options
author | Noel Grandin <noel@peralex.com> | 2016-01-11 11:54:13 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-01-11 11:59:18 +0200 |
commit | 1ea49b5baeb415038129b4f1e0b5a331b32365d5 (patch) | |
tree | 0f42199efd756a96bd55e137a9cc5eb1d414263a /editeng | |
parent | a3f3cead5d7fed99ea78c2a12b8671f18d156e23 (diff) |
loplugin:unusedmethods unused return value in extensions
Change-Id: I449ecdb734e796813384a5d015e9ecabe28079eb
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/editdoc.cxx | 13 | ||||
-rw-r--r-- | editeng/source/editeng/editdoc.hxx | 2 | ||||
-rw-r--r-- | editeng/source/editeng/impedit.hxx | 2 | ||||
-rw-r--r-- | editeng/source/editeng/impedit2.cxx | 4 | ||||
-rw-r--r-- | editeng/source/editeng/textconv.cxx | 3 | ||||
-rw-r--r-- | editeng/source/editeng/textconv.hxx | 2 |
6 files changed, 4 insertions, 22 deletions
diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx index baf72de5fd15..fddb24702924 100644 --- a/editeng/source/editeng/editdoc.cxx +++ b/editeng/source/editeng/editdoc.cxx @@ -2940,19 +2940,6 @@ bool CharAttribList::HasBoundingAttrib( sal_Int32 nBound ) const return false; } -const EditCharAttrib* CharAttribList::FindEmptyAttrib( sal_uInt16 nWhich, sal_Int32 nPos ) const -{ - if ( !bHasEmptyAttribs ) - return nullptr; - - for (const std::unique_ptr<EditCharAttrib>& rAttr : aAttribs) - { - if (rAttr->GetStart() == nPos && rAttr->GetEnd() == nPos && rAttr->Which() == nWhich) - return rAttr.get(); - } - return nullptr; -} - EditCharAttrib* CharAttribList::FindEmptyAttrib( sal_uInt16 nWhich, sal_Int32 nPos ) { if ( !bHasEmptyAttribs ) diff --git a/editeng/source/editeng/editdoc.hxx b/editeng/source/editeng/editdoc.hxx index ebdfb09b70f3..9fca92792894 100644 --- a/editeng/source/editeng/editdoc.hxx +++ b/editeng/source/editeng/editdoc.hxx @@ -201,7 +201,6 @@ public: const EditCharAttrib* FindAttrib( sal_uInt16 nWhich, sal_Int32 nPos ) const; EditCharAttrib* FindAttrib( sal_uInt16 nWhich, sal_Int32 nPos ); const EditCharAttrib* FindNextAttrib( sal_uInt16 nWhich, sal_Int32 nFromPos ) const; - const EditCharAttrib* FindEmptyAttrib( sal_uInt16 nWhich, sal_Int32 nPos ) const; EditCharAttrib* FindEmptyAttrib( sal_uInt16 nWhich, sal_Int32 nPos ); const EditCharAttrib* FindFeature( sal_Int32 nPos ) const; @@ -262,7 +261,6 @@ public: void SetStyleSheet( SfxStyleSheet* pS, bool bRecalcFont = true ); void SetStyleSheet( SfxStyleSheet* pS, const SvxFont& rFontFromStyle ); SfxStyleSheet* GetStyleSheet() { return aContentAttribs.GetStyleSheet(); } - const SfxStyleSheet* GetStyleSheet() const { return aContentAttribs.GetStyleSheet(); } void CreateDefFont(); diff --git a/editeng/source/editeng/impedit.hxx b/editeng/source/editeng/impedit.hxx index e1da8ca7754e..c8d2211e6884 100644 --- a/editeng/source/editeng/impedit.hxx +++ b/editeng/source/editeng/impedit.hxx @@ -548,7 +548,7 @@ private: void CheckPageOverflow(); - EditPaM Clear(); + void Clear(); EditPaM RemoveText(); bool CreateLines( sal_Int32 nPara, sal_uInt32 nStartPosY ); void CreateAndInsertEmptyLine( ParaPortion* pParaPortion, sal_uInt32 nStartPosY ); diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx index 97ea3936b7fa..1aa89c41568f 100644 --- a/editeng/source/editeng/impedit2.cxx +++ b/editeng/source/editeng/impedit2.cxx @@ -611,7 +611,7 @@ EditPaM ImpEditEngine::InsertText(const EditSelection& aSel, const OUString& rSt return aPaM; } -EditPaM ImpEditEngine::Clear() +void ImpEditEngine::Clear() { InitDoc( false ); @@ -628,8 +628,6 @@ EditPaM ImpEditEngine::Clear() EditView* pView = aEditViews[--nView]; pView->pImpEditView->SetEditSelection( aSel ); } - - return aPaM; } EditPaM ImpEditEngine::RemoveText() diff --git a/editeng/source/editeng/textconv.cxx b/editeng/source/editeng/textconv.cxx index 5491fbee2ca3..78077148985b 100644 --- a/editeng/source/editeng/textconv.cxx +++ b/editeng/source/editeng/textconv.cxx @@ -116,7 +116,7 @@ bool TextConvWrapper::ConvNext_impl() } -bool TextConvWrapper::FindConvText_impl() +void TextConvWrapper::FindConvText_impl() { // modified version of SvxSpellWrapper::FindSpellError @@ -138,7 +138,6 @@ bool TextConvWrapper::FindConvText_impl() } } m_pWin->LeaveWait(); - return bFound; } diff --git a/editeng/source/editeng/textconv.hxx b/editeng/source/editeng/textconv.hxx index ca666666189d..e7209fc983e0 100644 --- a/editeng/source/editeng/textconv.hxx +++ b/editeng/source/editeng/textconv.hxx @@ -52,7 +52,7 @@ class TextConvWrapper : public editeng::HangulHanjaConversion // from SvxSpellWrapper copied and modified bool ConvNext_impl(); // former SpellNext - bool FindConvText_impl(); // former FindSpellError + void FindConvText_impl(); // former FindSpellError bool ConvMore_impl(); // former SpellMore // from EditSpellWrapper copied and modified |