summaryrefslogtreecommitdiffstats
path: root/editeng
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-02-22 16:39:29 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-02-23 11:55:13 +0100
commit3010e0a6b7f4f41f8bda43d0e9931ef731090f48 (patch)
tree8b96171052de1d6e687e56b1c873f3564f5c6394 /editeng
parentloplugin:unusedfields in extensions (diff)
downloadcore-3010e0a6b7f4f41f8bda43d0e9931ef731090f48.tar.gz
core-3010e0a6b7f4f41f8bda43d0e9931ef731090f48.zip
loplugin:unusedfields in editeng
Change-Id: Ic237f67cb48d8894227805904fbba3b7865b2358 Reviewed-on: https://gerrit.libreoffice.org/68230 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/accessibility/AccessibleStaticTextBase.cxx14
-rw-r--r--editeng/source/editeng/eertfpar.cxx1
-rw-r--r--editeng/source/misc/unolingu.cxx1
-rw-r--r--editeng/source/outliner/outliner.cxx4
4 files changed, 1 insertions, 19 deletions
diff --git a/editeng/source/accessibility/AccessibleStaticTextBase.cxx b/editeng/source/accessibility/AccessibleStaticTextBase.cxx
index c28c94b7dc99..b37d62d57979 100644
--- a/editeng/source/accessibility/AccessibleStaticTextBase.cxx
+++ b/editeng/source/accessibility/AccessibleStaticTextBase.cxx
@@ -173,10 +173,6 @@ namespace accessibility
// guard for maOffset
mutable ::osl::Mutex maMutex;
-
- /// our current offset to the containing shape/cell (guarded by maMutex)
- Point maOffset;
-
};
@@ -186,8 +182,7 @@ namespace accessibility
AccessibleStaticTextBase_Impl::AccessibleStaticTextBase_Impl() :
mxTextParagraph( new AccessibleEditableTextPara(nullptr) ),
maEditSource(),
- maMutex(),
- maOffset(0,0)
+ maMutex()
{
// TODO: this is still somewhat of a hack, all the more since
@@ -204,13 +199,6 @@ namespace accessibility
void AccessibleStaticTextBase_Impl::SetOffset( const Point& rPoint )
{
-
- // guard against non-atomic access to maOffset data structure
- {
- ::osl::MutexGuard aGuard( maMutex );
- maOffset = rPoint;
- }
-
if( mxTextParagraph.is() )
mxTextParagraph->SetEEOffset( rPoint );
}
diff --git a/editeng/source/editeng/eertfpar.cxx b/editeng/source/editeng/eertfpar.cxx
index 54c585c44560..02df47e17d2d 100644
--- a/editeng/source/editeng/eertfpar.cxx
+++ b/editeng/source/editeng/eertfpar.cxx
@@ -248,7 +248,6 @@ void EditRTFParser::InsertText()
if (mpEditEngine->IsRtfImportHandlerSet())
{
RtfImportInfo aImportInfo(RtfImportState::InsertText, this, mpEditEngine->CreateESelection(aCurSel));
- aImportInfo.aText = aText;
mpEditEngine->CallRtfImportHandler(aImportInfo);
}
aCurSel = mpEditEngine->InsertText(aCurSel, aText);
diff --git a/editeng/source/misc/unolingu.cxx b/editeng/source/misc/unolingu.cxx
index 5841f4def1a7..aae91634d45c 100644
--- a/editeng/source/misc/unolingu.cxx
+++ b/editeng/source/misc/unolingu.cxx
@@ -711,7 +711,6 @@ SvxAlternativeSpelling SvxGetAltSpelling(
aRes.nChangedPos = nL;
aRes.nChangedLength = nLen - nL - nR;
aRes.bIsAltSpelling = true;
- aRes.xHyphWord = rHyphWord;
}
return aRes;
}
diff --git a/editeng/source/outliner/outliner.cxx b/editeng/source/outliner/outliner.cxx
index a7ec83d0837d..72fece8bfaff 100644
--- a/editeng/source/outliner/outliner.cxx
+++ b/editeng/source/outliner/outliner.cxx
@@ -1611,10 +1611,6 @@ EBulletInfo Outliner::GetBulletInfo( sal_Int32 nPara )
if( pFmt->GetBulletFont() )
aInfo.aFont = *pFmt->GetBulletFont();
}
- else if ( pFmt->GetBrush()->GetGraphicObject() )
- {
- aInfo.aGraphic = pFmt->GetBrush()->GetGraphicObject()->GetGraphic();
- }
}
if ( aInfo.bVisible )