loplugin:unusedmethods

Change-Id: I3897ccb3349874672b778835b9c15642cb1a14f7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174298
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2024-09-30 13:27:29 +02:00
parent 73637f83ee
commit a6f1841aed
10 changed files with 0 additions and 105 deletions

View File

@@ -81,47 +81,6 @@ PlottingPositionHelper& HistogramChart::getPlottingPositionHelper(sal_Int32 nAxi
return rPosHelper;
}
awt::Point HistogramChart::getLabelScreenPositionAndAlignment(
LabelAlignment& rAlignment, sal_Int32 nLabelPlacement, double fScaledX,
double fScaledLowerYValue, double fScaledUpperYValue, double fBaseValue,
BarPositionHelper const* pPosHelper) const
{
double fY = fScaledUpperYValue;
bool bReverse = !pPosHelper->isMathematicalOrientationY();
bool bNormalOutside = (!bReverse == (fBaseValue < fScaledUpperYValue));
switch (nLabelPlacement)
{
case css::chart::DataLabelPlacement::TOP:
fY = bReverse ? fScaledLowerYValue : fScaledUpperYValue;
rAlignment = LABEL_ALIGN_TOP;
break;
case css::chart::DataLabelPlacement::BOTTOM:
fY = bReverse ? fScaledUpperYValue : fScaledLowerYValue;
rAlignment = LABEL_ALIGN_BOTTOM;
break;
case css::chart::DataLabelPlacement::OUTSIDE:
fY = (fBaseValue < fScaledUpperYValue) ? fScaledUpperYValue : fScaledLowerYValue;
rAlignment = bNormalOutside ? LABEL_ALIGN_TOP : LABEL_ALIGN_BOTTOM;
break;
case css::chart::DataLabelPlacement::INSIDE:
fY = (fBaseValue < fScaledUpperYValue) ? fScaledUpperYValue : fScaledLowerYValue;
rAlignment = bNormalOutside ? LABEL_ALIGN_BOTTOM : LABEL_ALIGN_TOP;
break;
case css::chart::DataLabelPlacement::CENTER:
fY -= (fScaledUpperYValue - fScaledLowerYValue) / 2.0;
rAlignment = LABEL_ALIGN_CENTER;
break;
default:
OSL_FAIL("this label alignment is not implemented yet");
break;
}
drawing::Position3D aScenePosition3D(
pPosHelper->transformScaledLogicToScene(fScaledX, fY, 0.0, true));
return LabelPositionHelper(2, m_xLogicTarget).transformSceneToScreenPosition(aScenePosition3D);
}
void HistogramChart::addSeries(std::unique_ptr<VDataSeries> pSeries, sal_Int32 zSlot,
sal_Int32 xSlot, sal_Int32 ySlot)
{

View File

@@ -30,12 +30,6 @@ public:
virtual css::drawing::Direction3D getPreferredDiagramAspectRatio() const override;
private:
css::awt::Point getLabelScreenPositionAndAlignment(LabelAlignment& rAlignment,
sal_Int32 nLabelPlacement, double fScaledX,
double fScaledLowerYValue,
double fScaledUpperYValue, double fBaseValue,
BarPositionHelper const* pPosHelper) const;
virtual PlottingPositionHelper& getPlottingPositionHelper(sal_Int32 nAxisIndex) const override;
void adaptGapWidthForHistogram();

View File

@@ -1573,11 +1573,6 @@ namespace comphelper
mbExitWasCalled = true;
}
bool BackupFileHelper::getExitWasCalled()
{
return mbExitWasCalled;
}
void BackupFileHelper::reactOnSafeMode(bool bSafeMode)
{
// ensure existence of needed paths

View File

@@ -107,7 +107,6 @@ namespace comphelper
// allow to set static global flag when app had to call _exit()
static void setExitWasCalled();
static bool getExitWasCalled();
// This call initializes the state of the UserDirectory as needed, it may
// initialize to SafeMode configuration or return from it by moving files

View File

@@ -65,12 +65,9 @@ public:
InflaterBytes(bool bNoWrap);
~InflaterBytes();
void setInput( const sal_Int8* pBuffer, sal_Int32 nLen );
bool needsDictionary() const { return bNeedDict; }
bool finished() const { return bFinished; }
sal_Int32 doInflateSegment( sal_Int8* pOutBuffer, sal_Int32 nBufLen, sal_Int32 nNewOffset, sal_Int32 nNewLength );
void end( );
sal_Int32 getLastInflateError() const { return nLastInflateError; }
};
}

View File

@@ -171,7 +171,6 @@ public:
OUString GetPresObjText(PresObjKind eObjKind) const;
SfxStyleSheet* GetStyleSheetForMasterPageBackground() const;
SfxStyleSheet* GetStyleSheetForPresObj(PresObjKind eObjKind) const;
sal_Int64 GetHashCode() const;
bool RestoreDefaultText( SdrObject* pObj );
/** @return true if the given SdrObject is inside the presentation object list */

View File

@@ -2696,11 +2696,6 @@ SdPage* SdPage::getImplementation( const css::uno::Reference< css::drawing::XDra
return nullptr;
}
sal_Int64 SdPage::GetHashCode() const
{
return sal::static_int_cast<sal_Int64>(reinterpret_cast<sal_IntPtr>(this));
}
void SdPage::SetName (const OUString& rName)
{
OUString aOldName( GetName() );

View File

@@ -82,8 +82,6 @@ public:
void DeleteAnnotationsByAuthor( std::u16string_view sAuthor );
void DeleteAllAnnotations();
void ExecuteAnnotationTagContextMenu(rtl::Reference<sdr::annotation::Annotation> const& xAnnotation, weld::Widget* pParent, const ::tools::Rectangle& rContextRect);
static Color GetColorDark(sal_uInt16 aAuthorIndex);
static Color GetColorLight(sal_uInt16 aAuthorIndex);
static Color GetColor(sal_uInt16 aAuthorIndex);
@@ -105,8 +103,6 @@ public:
SdPage* GetCurrentPage();
SdDrawDocument* GetDoc() { return mpDoc; }
void ShowAnnotations(bool bShow);
private:

View File

@@ -158,42 +158,6 @@ static void lcl_select_marked_objects(sd::ViewShell* pViewShell, SdPageObjsTLV*
}
}
//when object is marked , fresh the corresponding entry tree .
void SdNavigatorWin::FreshTree( const SdDrawDocument* pDoc )
{
SdDrawDocument* pNonConstDoc = const_cast<SdDrawDocument*>(pDoc); // const as const can...
sd::DrawDocShell* pDocShell = pNonConstDoc->GetDocSh();
::sd::ViewShell* pViewShell = pDocShell->GetViewShell();
// tdf#160190
if (!pViewShell)
return;
// tdf#139944 disable navigator in master mode
if (const sd::DrawViewShell* pDrawViewShell = static_cast<::sd::DrawViewShell*>(pViewShell))
{
if (pDrawViewShell->GetEditMode() == EditMode::MasterPage)
{
m_xContainer->set_sensitive(false);
mxTlbObjects->clear();
return;
}
else
m_xContainer->set_sensitive(true);
}
const OUString& aDocShName( pDocShell->GetName() );
OUString aDocName = pDocShell->GetMedium()->GetName();
if (!mxTlbObjects->IsEqualToDoc(pDoc))
{
mxTlbObjects->Fill( pDoc, false, aDocName ); // Only normal pages
RefreshDocumentLB();
mxLbDocs->set_active_text(aDocShName);
}
lcl_select_marked_objects(pViewShell, mxTlbObjects.get());
}
void SdNavigatorWin::InitTreeLB( const SdDrawDocument* pDoc )
{
SdDrawDocument* pNonConstDoc = const_cast<SdDrawDocument*>(pDoc); // const as const can...

View File

@@ -170,9 +170,6 @@ private:
void ExecuteContextMenuAction(std::u16string_view rSelectedPopupEntry);
public:
//when object is marked , fresh the corresponding entry tree .
void FreshTree ( const SdDrawDocument* pDoc );
virtual weld::Window* GetFrameWeld() const override;
};