loplugin:unusedmethods

Change-Id: I24666a7746f8920ddf84731f204f3e1a5b9b0c85
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177024
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin 2024-11-22 14:38:02 +02:00
parent d1e8e430db
commit 437aaf54c6
16 changed files with 0 additions and 66 deletions

View file

@ -44,7 +44,6 @@ public:
/// @throws css::io::BufferSizeExceededException
/// @throws css::io::IOException
/// @throws css::uno::RuntimeException
sal_Int32 readBytes( css::uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead );
sal_Int32 readBytes( sal_Int8* aData, sal_Int32 nBytesToRead );
// XSeekable
/// @throws css::lang::IllegalArgumentException

View file

@ -56,13 +56,6 @@ void ByteGrabber::setInputStream (const uno::Reference < io::XInputStream >& xNe
assert(mpByteReader);
}
// XInputStream chained
sal_Int32 ByteGrabber::readBytes( uno::Sequence< sal_Int8 >& aData,
sal_Int32 nBytesToRead )
{
return xStream->readBytes(aData, nBytesToRead );
}
sal_Int32 ByteGrabber::readBytes( sal_Int8* aData,
sal_Int32 nBytesToRead )
{

View file

@ -44,11 +44,6 @@ public:
const Color** ppColor, ScInterpreterContext* pContext, bool bNullVals = true,
bool bFormula = false );
static svl::SharedString GetInputSharedString(
const ScRefCellValue& rCell, sal_uInt32 nFormat, ScInterpreterContext* pContext,
const ScDocument& rDoc, svl::SharedStringPool& rStrPool,
bool bFiltering = false, bool bForceSystemLocale = false );
// Similar to GetInputSharedString, but can be used to visit the source of the
// svl::SharedString to avoid reference counting overhead
template <typename TFunctor>

View file

@ -233,13 +233,6 @@ struct ScConditionEasyDialogData
sal_Int32 EntryIndex = -1;
OUString Formula;
ScConditionEasyDialogData(ScConditionMode* mode, bool isManaged, const OUString& formula = "")
: Mode(mode)
, IsManaged(isManaged)
, Formula(formula)
{
}
ScConditionEasyDialogData(ScConditionMode* mode, bool isManaged, sal_Int32 formatKey,
sal_Int32 entryIndex, const OUString& formula = "")
: Mode(mode)

View file

@ -96,8 +96,6 @@ public:
virtual void ShowEasyConditionalDialog(bool isEdit = false) = 0;
virtual void SetModified() = 0;
virtual ScConditionalFormat* GetCondFormatSelected() = 0;
};
class AbstractScDataPilotDatabaseDlg :public VclAbstractDialog

View file

@ -168,18 +168,6 @@ OUString ScCellFormat::GetInputString(
}
}
svl::SharedString ScCellFormat::GetInputSharedString(
const ScRefCellValue& rCell, sal_uInt32 nFormat, ScInterpreterContext* pContext, const ScDocument& rDoc,
svl::SharedStringPool& rStrPool,
bool bFiltering, bool bForceSystemLocale )
{
return visitInputSharedString(rCell, nFormat, pContext, rDoc, rStrPool,
bFiltering, bForceSystemLocale,
[](const svl::SharedString& arg) {
return arg;
});
}
OUString ScCellFormat::GetOutputString( ScDocument& rDoc, const ScAddress& rPos, const ScRefCellValue& rCell )
{
if (rCell.isEmpty())

View file

@ -734,11 +734,6 @@ void AbstractScCondFormatManagerDlg_Impl::SetModified()
return m_xDlg->SetModified();
}
ScConditionalFormat* AbstractScCondFormatManagerDlg_Impl::GetCondFormatSelected()
{
return m_xDlg->GetCondFormatSelected();
}
void AbstractScCondFormatManagerDlg_Impl::ShowEasyConditionalDialog(bool isEdit)
{
m_xDlg->ShowEasyConditionalDialog(isEdit);

View file

@ -115,7 +115,6 @@ public:
virtual std::unique_ptr<ScConditionalFormatList> GetConditionalFormatList() override;
virtual bool CondFormatsChanged() const override;
virtual void SetModified() override;
virtual ScConditionalFormat* GetCondFormatSelected() override;
virtual void ShowEasyConditionalDialog(bool isEdit = false) override;
};

View file

@ -46,7 +46,6 @@ namespace sd
{
rtl::Reference<sdr::annotation::Annotation> createAnnotation(SdPage* pPage);
rtl::Reference<sdr::annotation::Annotation> createAnnotationAndAddToPage(SdPage* pPage);
std::unique_ptr<SdrUndoAction> CreateUndoInsertOrRemoveAnnotation(rtl::Reference<sdr::annotation::Annotation>& xAnnotation, bool bInsert);

View file

@ -70,14 +70,6 @@ rtl::Reference<sdr::annotation::Annotation> createAnnotation(SdPage* pPage)
return rtl::Reference<Annotation>(new Annotation(comphelper::getProcessComponentContext(), pPage));
}
/** Creates an annotation and adds it to the page */
rtl::Reference<sdr::annotation::Annotation> createAnnotationAndAddToPage(SdPage* pPage)
{
rtl::Reference<sdr::annotation::Annotation> xAnnotation = createAnnotation(pPage);
pPage->addAnnotation(xAnnotation, -1);
return xAnnotation;
}
Annotation::Annotation(const uno::Reference<uno::XComponentContext>& context, SdrPage* pPage)
: sdr::annotation::Annotation(context, pPage)
{

View file

@ -184,7 +184,6 @@ public:
virtual void GetWorkArea(AbsoluteScreenPixelRectangle& rRect) override;
virtual SalFrame* GetParent() const override;
virtual void SetModal(bool bModal) override;
virtual bool GetModal() const override;
virtual void SetWindowState(const vcl::WindowData*) override;
virtual bool GetWindowState(vcl::WindowData*) override;
virtual void ShowFullScreen(bool bFullScreen, sal_Int32 nDisplay) override;

View file

@ -155,7 +155,6 @@ QImage toQImage(const Image& rImage);
QMessageBox::Icon vclMessageTypeToQtIcon(VclMessageType eType);
QString vclMessageTypeToQtTitle(VclMessageType eType);
int qtResponseTypeToVclResponseType(int ret);
/** Converts a string potentially containing a '~' character to indicate an accelerator
* to the Qt variant using '&' for the accelerator.

View file

@ -265,11 +265,6 @@ public:
{
}
virtual bool GetModal() const
{
return false;
}
// return true to indicate tooltips are shown natively, false otherwise
virtual bool ShowTooltip(const OUString& /*rHelpText*/, const tools::Rectangle& /*rHelpArea*/)
{

View file

@ -606,7 +606,6 @@ public:
virtual void PositionByToolkit(const tools::Rectangle& rRect, FloatWinPopupFlags nFlags) override;
virtual void SetModal(bool bModal) override;
virtual bool GetModal() const override;
void HideTooltip();
void BlockTooltip();
void UnblockTooltip();

View file

@ -626,8 +626,6 @@ void QtFrame::SetModal(bool bModal)
});
}
bool QtFrame::GetModal() const { return isWindow() && windowHandle()->isModal(); }
void QtFrame::SetWindowState(const vcl::WindowData* pState)
{
QtInstance& rQtInstance = GetQtInstance();

View file

@ -3132,13 +3132,6 @@ void GtkSalFrame::SetModal(bool bModal)
gtk_window_set_modal(GTK_WINDOW(m_pWindow), bModal);
}
bool GtkSalFrame::GetModal() const
{
if (!m_pWindow)
return false;
return gtk_window_get_modal(GTK_WINDOW(m_pWindow));
}
gboolean GtkSalFrame::signalTooltipQuery(GtkWidget*, gint /*x*/, gint /*y*/,
gboolean /*keyboard_mode*/, GtkTooltip *tooltip,
gpointer frame)