summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-09-30 13:19:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-10-01 11:16:30 +0200
commit73637f83ee92453eb6249acf9ceb2b39b5a9c4ea (patch)
treeee6132fdcaa18ee5b9391dd33f1f7370e90aa278
parentloplugin:unusedmethods (diff)
downloadcore-73637f83ee92453eb6249acf9ceb2b39b5a9c4ea.tar.gz
core-73637f83ee92453eb6249acf9ceb2b39b5a9c4ea.zip
loplugin:unusedmethods
Change-Id: I121a0e1323df7b6669f496ad63d771df8f76b429 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174297 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins
-rw-r--r--sw/inc/rdfhelper.hxx7
-rw-r--r--sw/inc/swabstdlg.hxx1
-rw-r--r--sw/source/core/doc/rdfhelper.cxx28
-rw-r--r--sw/source/ui/dialog/swdlgfact.cxx5
-rw-r--r--sw/source/ui/dialog/swdlgfact.hxx1
-rw-r--r--sw/source/writerfilter/ooxml/OOXMLPropertySet.hxx4
-rw-r--r--ucb/source/ucp/webdav-curl/SerfLockStore.hxx3
-rw-r--r--vcl/source/control/imivctl.hxx1
8 files changed, 0 insertions, 50 deletions
diff --git a/sw/inc/rdfhelper.hxx b/sw/inc/rdfhelper.hxx
index 164f99683495..8152ef6765c5 100644
--- a/sw/inc/rdfhelper.hxx
+++ b/sw/inc/rdfhelper.hxx
@@ -73,13 +73,6 @@ public:
const css::uno::Reference<css::rdf::XResource>& xSubject,
const OUString& rKey, const OUString& rValue);
- /// Clone all statements in the graph of type rType, if any exists, from one subject to another.
- static void cloneStatements(const rtl::Reference<SwXTextDocument>& xSrcModel,
- const rtl::Reference<SwXTextDocument>& xDstModel,
- const OUString& rType,
- const css::uno::Reference<css::rdf::XResource>& xSrcSubject,
- const css::uno::Reference<css::rdf::XResource>& xDstSubject);
-
/// Remove all statements in the graph of type rType, if any exists.
static void clearStatements(const rtl::Reference<SwXTextDocument>& xModel,
const OUString& rType,
diff --git a/sw/inc/swabstdlg.hxx b/sw/inc/swabstdlg.hxx
index 6a17984c6fc8..229b2fdc042d 100644
--- a/sw/inc/swabstdlg.hxx
+++ b/sw/inc/swabstdlg.hxx
@@ -280,7 +280,6 @@ public:
virtual void GetValues( sal_Unicode& rDelim,
SwInsertTableOptions& rInsTableFlags,
SwTableAutoFormat const*& prTAFormat ) = 0;
- virtual std::unique_ptr<SwTableAutoFormat> FillAutoFormatOfIndex() const = 0;
};
class AbstractSwInsertDBColAutoPilot : public VclAbstractDialog
diff --git a/sw/source/core/doc/rdfhelper.cxx b/sw/source/core/doc/rdfhelper.cxx
index b3db96f149a1..bb5615bec265 100644
--- a/sw/source/core/doc/rdfhelper.cxx
+++ b/sw/source/core/doc/rdfhelper.cxx
@@ -169,34 +169,6 @@ void SwRDFHelper::clearStatements(const rtl::Reference<SwXTextDocument>& xModel,
}
}
-void SwRDFHelper::cloneStatements(const rtl::Reference<SwXTextDocument>& xSrcModel,
- const rtl::Reference<SwXTextDocument>& xDstModel,
- const OUString& rType,
- const css::uno::Reference<css::rdf::XResource>& xSrcSubject,
- const css::uno::Reference<css::rdf::XResource>& xDstSubject)
-{
- uno::Reference<uno::XComponentContext> xComponentContext(comphelper::getProcessComponentContext());
- uno::Reference<rdf::XURI> xType = rdf::URI::create(xComponentContext, rType);
- uno::Reference<rdf::XDocumentMetadataAccess> xDocumentMetadataAccess(xSrcModel);
- const uno::Sequence< uno::Reference<rdf::XURI> > aGraphNames = getGraphNames(xDocumentMetadataAccess, xType);
- if (!aGraphNames.hasElements())
- return;
-
- for (const uno::Reference<rdf::XURI>& xGraphName : aGraphNames)
- {
- uno::Reference<rdf::XNamedGraph> xGraph = xDocumentMetadataAccess->getRDFRepository()->getGraph(xGraphName);
- uno::Reference<container::XEnumeration> xStatements = xGraph->getStatements(xSrcSubject, uno::Reference<rdf::XURI>(), uno::Reference<rdf::XURI>());
- while (xStatements->hasMoreElements())
- {
- const rdf::Statement aStatement = xStatements->nextElement().get<rdf::Statement>();
-
- const OUString sKey = aStatement.Predicate->getStringValue();
- const OUString sValue = aStatement.Object->getStringValue();
- addStatement(xDstModel, rType, xGraphName->getLocalName(), xDstSubject, sKey, sValue);
- }
- }
-}
-
std::map<OUString, OUString> SwRDFHelper::getTextNodeStatements(const OUString& rType, SwTextNode& rTextNode)
{
uno::Reference<rdf::XResource> xTextNode(SwXParagraph::CreateXParagraph(rTextNode.GetDoc(), &rTextNode, nullptr));
diff --git a/sw/source/ui/dialog/swdlgfact.cxx b/sw/source/ui/dialog/swdlgfact.cxx
index 346af3291f06..4ed228a58633 100644
--- a/sw/source/ui/dialog/swdlgfact.cxx
+++ b/sw/source/ui/dialog/swdlgfact.cxx
@@ -647,11 +647,6 @@ void AbstractSwSelGlossaryDlg_Impl::SelectEntryPos(sal_Int32 nIdx)
m_xDlg->SelectEntryPos( nIdx );
}
-std::unique_ptr<SwTableAutoFormat> AbstractSwConvertTableDlg_Impl::FillAutoFormatOfIndex() const
-{
- return m_xDlg->FillAutoFormatOfIndex();
-}
-
std::unique_ptr<SwTableAutoFormat> AbstractSwAutoFormatDlg_Impl::FillAutoFormatOfIndex() const
{
return m_xDlg->FillAutoFormatOfIndex();
diff --git a/sw/source/ui/dialog/swdlgfact.hxx b/sw/source/ui/dialog/swdlgfact.hxx
index 3f4b123abc58..3875fe8d997f 100644
--- a/sw/source/ui/dialog/swdlgfact.hxx
+++ b/sw/source/ui/dialog/swdlgfact.hxx
@@ -354,7 +354,6 @@ public:
virtual short Execute() override;
virtual void GetValues( sal_Unicode& rDelim,SwInsertTableOptions& rInsTableFlags,
SwTableAutoFormat const*& prTAFormat) override;
- virtual std::unique_ptr<SwTableAutoFormat> FillAutoFormatOfIndex() const override;
};
class AbstractSwInsertDBColAutoPilot_Impl : public AbstractSwInsertDBColAutoPilot
diff --git a/sw/source/writerfilter/ooxml/OOXMLPropertySet.hxx b/sw/source/writerfilter/ooxml/OOXMLPropertySet.hxx
index 0a5868617c9c..3fc77dc5bc20 100644
--- a/sw/source/writerfilter/ooxml/OOXMLPropertySet.hxx
+++ b/sw/source/writerfilter/ooxml/OOXMLPropertySet.hxx
@@ -37,15 +37,11 @@ public:
static OOXMLValue createBoolean(bool);
static OOXMLValue createBoolean(std::string_view);
static OOXMLValue createInteger(int);
- static OOXMLValue createUniversalMeasure(int);
static OOXMLValue createUniversalMeasure(std::string_view pValue, sal_uInt32 npPt);
/// Handles OOXML's ST_TwipsMeasure value.
- static OOXMLValue createTwipsMeasure(int);
static OOXMLValue createTwipsMeasure(std::string_view);
/// Handles OOXML's ST_HpsMeasure value.
- static OOXMLValue createHpsMeasure(int);
static OOXMLValue createHpsMeasure(std::string_view);
- static OOXMLValue createMeasurementOrPercent(int);
static OOXMLValue createMeasurementOrPercent(std::string_view);
static OOXMLValue createHex(sal_uInt32);
static OOXMLValue createHex(std::string_view);
diff --git a/ucb/source/ucp/webdav-curl/SerfLockStore.hxx b/ucb/source/ucp/webdav-curl/SerfLockStore.hxx
index 08a88746b0d0..30c7fe1d407e 100644
--- a/ucb/source/ucp/webdav-curl/SerfLockStore.hxx
+++ b/ucb/source/ucp/webdav-curl/SerfLockStore.hxx
@@ -82,9 +82,6 @@ public:
void refreshLocks();
- void joinThread();
- void restartThread();
-
// comphelper::LibreOfficeKit::ThreadJoinable
virtual bool joinThreads() override;
virtual void startThreads() override;
diff --git a/vcl/source/control/imivctl.hxx b/vcl/source/control/imivctl.hxx
index 9388208c0574..6542233782f8 100644
--- a/vcl/source/control/imivctl.hxx
+++ b/vcl/source/control/imivctl.hxx
@@ -204,7 +204,6 @@ public:
void Clear( bool bInCtor );
void SetStyle( WinBits nWinStyle );
- WinBits GetStyle() const { return nWinBits; }
void InsertEntry( std::unique_ptr<SvxIconChoiceCtrlEntry>, size_t nPos );
void RemoveEntry( size_t nPos );
void FontModified();