From 1ea49b5baeb415038129b4f1e0b5a331b32365d5 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 11 Jan 2016 11:54:13 +0200 Subject: loplugin:unusedmethods unused return value in extensions Change-Id: I449ecdb734e796813384a5d015e9ecabe28079eb --- editeng/source/editeng/editdoc.cxx | 13 ------------- editeng/source/editeng/editdoc.hxx | 2 -- editeng/source/editeng/impedit.hxx | 2 +- editeng/source/editeng/impedit2.cxx | 4 +--- editeng/source/editeng/textconv.cxx | 3 +-- editeng/source/editeng/textconv.hxx | 2 +- 6 files changed, 4 insertions(+), 22 deletions(-) (limited to 'editeng') 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& 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 -- cgit o/collabora/lov-6.4'>distro/collabora/lov-6.4 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2012-04-08LinkTarget.mk: remove gb_LinkTarget_add_package_headersMichael Stahl
2012-04-08gbuild: "use" vs. "add":Michael Stahl
2012-04-06Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operatorSzabolcs Dezsi
2012-04-06Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operatorSzabolcs Dezsi
2012-04-06Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operatorSzabolcs Dezsi
2012-04-05Fix Prefer prefix ++/-- operatorsJulien Nabet
2012-03-30remove static OUStrings from static_initialization_and_destruction chainCaolán McNamara
2012-03-10gbuild: get rid of realpath in gb_Foo_set_includeMatúš Kukan
2012-02-28callcatcher: remove newly unused methods and update listCaolán McNamara
2012-02-17WaE: unused variableCaolán McNamara
2012-02-17remove dodgy header-guardsCaolán McNamara
2012-02-16drop Z_PREFIX from internal zlib, makes building clucene much easierCaolán McNamara
2012-02-15use sal crc32 and skip cast frenzyCaolán McNamara
2012-02-15these were surely meant to be Z_PREFIX not ZLIB_PREFIXCaolán McNamara
2012-02-16Use RTL_CONSTASCII_STRINGPARAM instead of bare numberTakeshi Abe
2012-02-12If we can have a few more information...Julien Nabet
2012-02-08Added READMEs for modules which used to be in componentsJosh Heidenreich
2012-02-05switch to include-based build rather than sourced-based buildNorbert Thiebaud
2012-01-11fix prefix of command line switches (-- instead of -)Andras Timar
2012-01-02Fix for fdo43460 Part XXVI getLength() to isEmpty()Olivier Hallot
2011-12-21catch exception by constant referenceTakeshi Abe
2011-12-16Better fix for over-zealous Zip package consistency.Thorsten Behrens
2011-12-16Fix inconsistent compression method for encrypted ZIP packages.Thorsten Behrens
2011-12-15Revert "Fix n#653688"Stephan Bergmann
2011-12-14Align comment with code for overly zealous check in Zip fix.Thorsten Behrens
2011-12-14Fix n#653688Thorsten Behrens
2011-12-08childs -> childrenMichael T. Whiteley
2011-12-07in modules, when we have a env we are in stage gbuildBjoern Michaelsen
2011-11-29move reconfigure into gbuildBjoern Michaelsen
2011-11-27remove precompiled_xxx.hxx/cxxNorbert Thiebaud
2011-11-27remove pch from the include listNorbert Thiebaud
2011-11-27remove include of pch header from packageNorbert Thiebaud
2011-11-27remove pre-compiled header support in gbuild and gbuildified moduleNorbert Thiebaud
2011-11-25make gbuild makefiles run independant of pwd againBjoern Michaelsen
2011-11-16tweak gbuild standart Makefile to allow partial build in unsourced envNorbert Thiebaud