diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-17 05:41:08 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-17 08:18:11 +0200 |
commit | 7bad1516c5f2a85b5bae3f49261ac2494cbb7162 (patch) | |
tree | e16e60b92b2bead4e22a24949786d04008cf59ff /vcl | |
parent | ff55ad1aceb10b900254c8ad3629775b7789d60a (diff) |
loplugin:unusedmethods
Change-Id: Ie2285f64919d1c83b0a8df4ceb827f731e5cd609
Reviewed-on: https://gerrit.libreoffice.org/75739
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/impglyphitem.hxx | 2 | ||||
-rw-r--r-- | vcl/source/control/ivctrl.cxx | 5 | ||||
-rw-r--r-- | vcl/source/edit/texteng.cxx | 50 | ||||
-rw-r--r-- | vcl/source/edit/textview.cxx | 2 | ||||
-rw-r--r-- | vcl/source/gdi/gfxlink.cxx | 28 |
5 files changed, 0 insertions, 87 deletions
diff --git a/vcl/inc/impglyphitem.hxx b/vcl/inc/impglyphitem.hxx index a04113a1fbae..b379674548d5 100644 --- a/vcl/inc/impglyphitem.hxx +++ b/vcl/inc/impglyphitem.hxx @@ -94,8 +94,6 @@ public: sal_GlyphId glyphId() const { return m_aGlyphId; } int charCount() const { return m_nCharCount; } int origWidth() const { return m_nOrigWidth; } - LogicalFontInstance* fontInstance() const { return m_pFontInstance; } - GlyphItemFlags flags() const { return m_nFlags; } int charPos() const { return m_nCharPos; } int xOffset() const { return m_nXOffset; } }; diff --git a/vcl/source/control/ivctrl.cxx b/vcl/source/control/ivctrl.cxx index 482993e55b62..8841483c9c88 100644 --- a/vcl/source/control/ivctrl.cxx +++ b/vcl/source/control/ivctrl.cxx @@ -227,11 +227,6 @@ SvxIconChoiceCtrlEntry* SvtIconChoiceCtrl::GetEntry( const Point& rPixPos ) cons return const_cast<SvtIconChoiceCtrl*>(this)->_pImpl->GetEntry( aPos ); } -void SvtIconChoiceCtrl::SetStyle( WinBits nWinStyle ) -{ - _pImpl->SetStyle( nWinStyle ); -} - WinBits SvtIconChoiceCtrl::GetStyle() const { return _pImpl->GetStyle(); diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx index 0e61271a1ae4..333a1a201e69 100644 --- a/vcl/source/edit/texteng.cxx +++ b/vcl/source/edit/texteng.cxx @@ -2454,56 +2454,6 @@ void TextEngine::RemoveAttribs( sal_uInt32 nPara ) } } -void TextEngine::RemoveAttribs( sal_uInt32 nPara, sal_uInt16 nWhich ) -{ - if ( nPara < mpDoc->GetNodes().size() ) - { - TextNode* pNode = mpDoc->GetNodes()[ nPara ].get(); - if ( pNode->GetCharAttribs().Count() ) - { - TextCharAttribList& rAttribs = pNode->GetCharAttribs(); - for(sal_uInt16 nAttr = rAttribs.Count(); nAttr; --nAttr) - { - if(rAttribs.GetAttrib( nAttr - 1 ).Which() == nWhich) - { - // tdf#113400 destroy unique_ptr returned - rAttribs.RemoveAttrib( nAttr -1 ).reset(); - } - } - TEParaPortion* pTEParaPortion = mpTEParaPortions->GetObject( nPara ); - pTEParaPortion->MarkSelectionInvalid( 0 ); - mbFormatted = false; - IdleFormatAndUpdate( nullptr, 0xFFFF ); - } - } -} - -std::unique_ptr<TextCharAttrib> TextEngine::RemoveAttrib( sal_uInt32 nPara, const TextCharAttrib& rAttrib ) -{ - std::unique_ptr<TextCharAttrib> pRet; - if ( nPara < mpDoc->GetNodes().size() ) - { - TextNode* pNode = mpDoc->GetNodes()[ nPara ].get(); - if ( pNode->GetCharAttribs().Count() ) - { - TextCharAttribList& rAttribs = pNode->GetCharAttribs(); - for(sal_uInt16 nAttr = rAttribs.Count(); nAttr; --nAttr) - { - if(&(rAttribs.GetAttrib( nAttr - 1 )) == &rAttrib) - { - pRet = rAttribs.RemoveAttrib( nAttr -1 ); - break; - } - } - TEParaPortion* pTEParaPortion = mpTEParaPortions->GetObject( nPara ); - pTEParaPortion->MarkSelectionInvalid( 0 ); - mbFormatted = false; - FormatAndUpdate(); - } - } - return pRet; -} - void TextEngine::SetAttrib( const TextAttrib& rAttr, sal_uInt32 nPara, sal_Int32 nStart, sal_Int32 nEnd, bool bIdleFormatAndUpdate ) { diff --git a/vcl/source/edit/textview.cxx b/vcl/source/edit/textview.cxx index 622d42241789..c3506bd0efc8 100644 --- a/vcl/source/edit/textview.cxx +++ b/vcl/source/edit/textview.cxx @@ -2164,8 +2164,6 @@ bool TextView::HasSelection() const { return mpImpl->maSelection.HasRange(); } bool TextView::IsInsertMode() const { return mpImpl->mbInsertMode; } -void TextView::SupportProtectAttribute(bool bSupport) -{ mpImpl->mbSupportProtectAttribute = bSupport;} void TextView::MatchGroup() { diff --git a/vcl/source/gdi/gfxlink.cxx b/vcl/source/gdi/gfxlink.cxx index e042a48e0aa4..3bb236ca4a34 100644 --- a/vcl/source/gdi/gfxlink.cxx +++ b/vcl/source/gdi/gfxlink.cxx @@ -146,34 +146,6 @@ bool GfxLink::LoadNative( Graphic& rGraphic ) return bRet; } -void GfxLink::SwapOut() -{ - if( !IsSwappedOut() && mpSwapInData && mnSwapInDataSize ) - { - ::utl::TempFile aTempFile; - - OUString aURL = aTempFile.GetURL(); - - if (!aURL.isEmpty()) - { - std::shared_ptr<GfxLink::SwapOutData> pSwapOut = std::make_shared<SwapOutData>(aURL); // aURL is removed in the destructor - SvStream* pOStm = aTempFile.GetStream(StreamMode::STD_WRITE); - if (pOStm) - { - pOStm->WriteBytes(mpSwapInData.get(), mnSwapInDataSize); - bool bError = (ERRCODE_NONE != pOStm->GetError()); - aTempFile.CloseStream(); - - if( !bError ) - { - mpSwapOutData = pSwapOut; - mpSwapInData.reset(); - } - } - } - } -} - bool GfxLink::ExportNative( SvStream& rOStream ) const { if( GetDataSize() ) |