summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-09-26 13:41:06 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-09-28 08:59:30 +0200
commitdd5947b852a2c84e6d35ca6d1e4cb0fd09a49b8d (patch)
tree5136fdc4487a655220571ed8443bd77d797858ec
parentloplugin:virtualdead in extensions (diff)
downloadcore-dd5947b852a2c84e6d35ca6d1e4cb0fd09a49b8d.tar.gz
core-dd5947b852a2c84e6d35ca6d1e4cb0fd09a49b8d.zip
loplugin:virtualdead in editeng
Change-Id: I72f9cf62f9daeaed5108ede41dd41544204a9745 Reviewed-on: https://gerrit.libreoffice.org/79643 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--compilerplugins/clang/virtualdead.results3
-rw-r--r--editeng/inc/edtspell.hxx1
-rw-r--r--editeng/source/editeng/edtspell.cxx5
-rw-r--r--editeng/source/misc/splwrap.cxx15
-rw-r--r--include/editeng/splwrap.hxx1
5 files changed, 1 insertions, 24 deletions
diff --git a/compilerplugins/clang/virtualdead.results b/compilerplugins/clang/virtualdead.results
index 37118ffe3d6f..740ef0bedbd6 100644
--- a/compilerplugins/clang/virtualdead.results
+++ b/compilerplugins/clang/virtualdead.results
@@ -70,9 +70,6 @@ include/canvas/base/graphicdevicebase.hxx:319
include/connectivity/sdbcx/IRefreshable.hxx:31
void connectivity::sdbcx::IRefreshableGroups::refreshGroups()
empty
-include/editeng/splwrap.hxx:105
- _Bool SvxSpellWrapper::HasOtherCnt()
- 0
include/filter/msfilter/msdffimp.hxx:546
_Bool SvxMSDffManager::ShapeHasText(unsigned long,unsigned long,)const
1
diff --git a/editeng/inc/edtspell.hxx b/editeng/inc/edtspell.hxx
index 53565fd71d9e..d21ce140cf8c 100644
--- a/editeng/inc/edtspell.hxx
+++ b/editeng/inc/edtspell.hxx
@@ -48,7 +48,6 @@ protected:
virtual void SpellContinue() override; // Check area
virtual void ReplaceAll( const OUString &rNewText ) override;
virtual bool SpellMore() override;
- virtual bool HasOtherCnt() override;
public:
EditSpellWrapper( vcl::Window* pWin,
diff --git a/editeng/source/editeng/edtspell.cxx b/editeng/source/editeng/edtspell.cxx
index 9d6b86f6d414..93bdb213da52 100644
--- a/editeng/source/editeng/edtspell.cxx
+++ b/editeng/source/editeng/edtspell.cxx
@@ -108,11 +108,6 @@ void EditSpellWrapper::SpellContinue()
SetLast( pEditView->GetImpEditEngine()->ImpSpell( pEditView ) );
}
-bool EditSpellWrapper::HasOtherCnt()
-{
- return false;
-}
-
bool EditSpellWrapper::SpellMore()
{
EditEngine* pEE = pEditView->GetEditEngine();
diff --git a/editeng/source/misc/splwrap.cxx b/editeng/source/misc/splwrap.cxx
index 5e9cddc5d841..a7b582b66d6a 100644
--- a/editeng/source/misc/splwrap.cxx
+++ b/editeng/source/misc/splwrap.cxx
@@ -230,12 +230,6 @@ void SvxSpellWrapper::SpellStart( SvxSpellArea /*eSpell*/ )
} // given area.
-bool SvxSpellWrapper::HasOtherCnt()
-{
- return false; // Is there a special area?
-}
-
-
bool SvxSpellWrapper::SpellMore()
{
return false; // Should additional documents be examined?
@@ -343,14 +337,7 @@ bool SvxSpellWrapper::SpellNext( )
}
else if ( bStartDone && bEndDone )
{
- bool bIsSpellSpecial = xProp.is() && xProp->getIsSpellSpecial();
- // Body area done, ask for special area
- if( !IsHyphen() && bIsSpellSpecial && HasOtherCnt() )
- {
- SpellStart( SvxSpellArea::Other );
- bOtherCntnt = bGoOn = true;
- }
- else if ( SpellMore() ) // check another document?
+ if ( SpellMore() ) // check another document?
{
bOtherCntnt = false;
bStartDone = !bReverse;
diff --git a/include/editeng/splwrap.hxx b/include/editeng/splwrap.hxx
index 705fedd8ea33..c73a778983c0 100644
--- a/include/editeng/splwrap.hxx
+++ b/include/editeng/splwrap.hxx
@@ -102,7 +102,6 @@ protected:
void SetLast(const css::uno::Reference< css::uno::XInterface > &xNewLast)
{ xLast = xNewLast; }
virtual bool SpellMore(); // examine further documents?
- virtual bool HasOtherCnt(); // Are there any special areas?
virtual void SpellStart( SvxSpellArea eSpell ); // Preparing the area
virtual void SpellContinue(); // Check Areas
// Result available through GetLast