Kaydet (Commit) 3010e0a6 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:unusedfields in editeng

Change-Id: Ic237f67cb48d8894227805904fbba3b7865b2358
Reviewed-on: https://gerrit.libreoffice.org/68230
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst adb2b8ff
...@@ -173,10 +173,6 @@ namespace accessibility ...@@ -173,10 +173,6 @@ namespace accessibility
// guard for maOffset // guard for maOffset
mutable ::osl::Mutex maMutex; mutable ::osl::Mutex maMutex;
/// our current offset to the containing shape/cell (guarded by maMutex)
Point maOffset;
}; };
...@@ -186,8 +182,7 @@ namespace accessibility ...@@ -186,8 +182,7 @@ namespace accessibility
AccessibleStaticTextBase_Impl::AccessibleStaticTextBase_Impl() : AccessibleStaticTextBase_Impl::AccessibleStaticTextBase_Impl() :
mxTextParagraph( new AccessibleEditableTextPara(nullptr) ), mxTextParagraph( new AccessibleEditableTextPara(nullptr) ),
maEditSource(), maEditSource(),
maMutex(), maMutex()
maOffset(0,0)
{ {
// TODO: this is still somewhat of a hack, all the more since // TODO: this is still somewhat of a hack, all the more since
...@@ -204,13 +199,6 @@ namespace accessibility ...@@ -204,13 +199,6 @@ namespace accessibility
void AccessibleStaticTextBase_Impl::SetOffset( const Point& rPoint ) 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() ) if( mxTextParagraph.is() )
mxTextParagraph->SetEEOffset( rPoint ); mxTextParagraph->SetEEOffset( rPoint );
} }
......
...@@ -248,7 +248,6 @@ void EditRTFParser::InsertText() ...@@ -248,7 +248,6 @@ void EditRTFParser::InsertText()
if (mpEditEngine->IsRtfImportHandlerSet()) if (mpEditEngine->IsRtfImportHandlerSet())
{ {
RtfImportInfo aImportInfo(RtfImportState::InsertText, this, mpEditEngine->CreateESelection(aCurSel)); RtfImportInfo aImportInfo(RtfImportState::InsertText, this, mpEditEngine->CreateESelection(aCurSel));
aImportInfo.aText = aText;
mpEditEngine->CallRtfImportHandler(aImportInfo); mpEditEngine->CallRtfImportHandler(aImportInfo);
} }
aCurSel = mpEditEngine->InsertText(aCurSel, aText); aCurSel = mpEditEngine->InsertText(aCurSel, aText);
......
...@@ -711,7 +711,6 @@ SvxAlternativeSpelling SvxGetAltSpelling( ...@@ -711,7 +711,6 @@ SvxAlternativeSpelling SvxGetAltSpelling(
aRes.nChangedPos = nL; aRes.nChangedPos = nL;
aRes.nChangedLength = nLen - nL - nR; aRes.nChangedLength = nLen - nL - nR;
aRes.bIsAltSpelling = true; aRes.bIsAltSpelling = true;
aRes.xHyphWord = rHyphWord;
} }
return aRes; return aRes;
} }
......
...@@ -1611,10 +1611,6 @@ EBulletInfo Outliner::GetBulletInfo( sal_Int32 nPara ) ...@@ -1611,10 +1611,6 @@ EBulletInfo Outliner::GetBulletInfo( sal_Int32 nPara )
if( pFmt->GetBulletFont() ) if( pFmt->GetBulletFont() )
aInfo.aFont = *pFmt->GetBulletFont(); aInfo.aFont = *pFmt->GetBulletFont();
} }
else if ( pFmt->GetBrush()->GetGraphicObject() )
{
aInfo.aGraphic = pFmt->GetBrush()->GetGraphicObject()->GetGraphic();
}
} }
if ( aInfo.bVisible ) if ( aInfo.bVisible )
......
...@@ -255,8 +255,6 @@ struct RtfImportInfo ...@@ -255,8 +255,6 @@ struct RtfImportInfo
int nToken; int nToken;
short nTokenValue; short nTokenValue;
OUString aText;
RtfImportInfo( RtfImportState eState, SvParser<int>* pPrsrs, const ESelection& rSel ); RtfImportInfo( RtfImportState eState, SvParser<int>* pPrsrs, const ESelection& rSel );
~RtfImportInfo(); ~RtfImportInfo();
}; };
......
...@@ -546,7 +546,6 @@ struct EBulletInfo ...@@ -546,7 +546,6 @@ struct EBulletInfo
sal_uInt16 nType; // see SvxNumberType sal_uInt16 nType; // see SvxNumberType
OUString aText; OUString aText;
SvxFont aFont; SvxFont aFont;
Graphic aGraphic;
sal_Int32 nParagraph; sal_Int32 nParagraph;
tools::Rectangle aBounds; tools::Rectangle aBounds;
......
...@@ -91,8 +91,6 @@ namespace com { namespace sun { namespace star { namespace linguistic2 { ...@@ -91,8 +91,6 @@ namespace com { namespace sun { namespace star { namespace linguistic2 {
struct SvxAlternativeSpelling struct SvxAlternativeSpelling
{ {
OUString aReplacement; OUString aReplacement;
css::uno::Reference< css::linguistic2::XHyphenatedWord >
xHyphWord;
sal_Int16 nChangedPos, sal_Int16 nChangedPos,
nChangedLength; nChangedLength;
bool bIsAltSpelling; bool bIsAltSpelling;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment