summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-08-12 15:03:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-13 08:34:01 +0200
commitcb41806ad98a394333234fce02ad8681f1a4604c (patch)
tree3636e76a49ff242cd3e882723f4db7ef2a36fa94 /writerfilter
parentf4027dd967a3292cfba689ca735d839b16ac2d92 (diff)
loplugin:unusedmethods
tweak the python script to code with some clang weirdnes Change-Id: I88fc9f901748ff44af2b67704cc437b770ef0737 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138196 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/dmapper/DomainMapper.cxx7
-rw-r--r--writerfilter/source/dmapper/DomainMapper.hxx3
-rw-r--r--writerfilter/source/dmapper/GraphicHelpers.cxx19
-rw-r--r--writerfilter/source/dmapper/GraphicHelpers.hxx11
4 files changed, 0 insertions, 40 deletions
diff --git a/writerfilter/source/dmapper/DomainMapper.cxx b/writerfilter/source/dmapper/DomainMapper.cxx
index a0dba5ad6f38..27621bec27bb 100644
--- a/writerfilter/source/dmapper/DomainMapper.cxx
+++ b/writerfilter/source/dmapper/DomainMapper.cxx
@@ -4342,13 +4342,6 @@ GraphicZOrderHelper* DomainMapper::graphicZOrderHelper()
return zOrderHelper.get();
}
-GraphicNamingHelper& DomainMapper::GetGraphicNamingHelper()
-{
- if (m_pGraphicNamingHelper == nullptr)
- m_pGraphicNamingHelper.reset(new GraphicNamingHelper());
- return *m_pGraphicNamingHelper;
-}
-
uno::Reference<drawing::XShape> DomainMapper::PopPendingShape()
{
return m_pImpl->PopPendingShape();
diff --git a/writerfilter/source/dmapper/DomainMapper.hxx b/writerfilter/source/dmapper/DomainMapper.hxx
index 07d089e22348..3e35c6772ab5 100644
--- a/writerfilter/source/dmapper/DomainMapper.hxx
+++ b/writerfilter/source/dmapper/DomainMapper.hxx
@@ -62,7 +62,6 @@ class DomainMapper_Impl;
class ListsManager;
class StyleSheetTable;
class GraphicZOrderHelper;
-class GraphicNamingHelper;
typedef tools::SvRef<StyleSheetTable> StyleSheetTablePtr;
@@ -108,7 +107,6 @@ public:
StyleSheetTablePtr const & GetStyleSheetTable( );
SettingsTablePtr const & GetSettingsTable();
GraphicZOrderHelper* graphicZOrderHelper();
- GraphicNamingHelper& GetGraphicNamingHelper();
/// Return the first from the pending (not inserted to the document) shapes, if there are any.
css::uno::Reference<css::drawing::XShape> PopPendingShape();
@@ -185,7 +183,6 @@ private:
bool mbHasControls;
bool mbWasShapeInPara;
std::unique_ptr< GraphicZOrderHelper > zOrderHelper;
- std::unique_ptr<GraphicNamingHelper> m_pGraphicNamingHelper;
OUString m_sGlossaryEntryName;
};
diff --git a/writerfilter/source/dmapper/GraphicHelpers.cxx b/writerfilter/source/dmapper/GraphicHelpers.cxx
index d4fc4b9a8c09..de8f95df92b1 100644
--- a/writerfilter/source/dmapper/GraphicHelpers.cxx
+++ b/writerfilter/source/dmapper/GraphicHelpers.cxx
@@ -324,25 +324,6 @@ sal_Int32 GraphicZOrderHelper::findZOrder( sal_Int32 relativeHeight, bool bOldSt
return 0; // this should not(?) happen
}
-GraphicNamingHelper::GraphicNamingHelper()
- : m_nCounter(0)
-{
-}
-
-OUString GraphicNamingHelper::NameGraphic(const OUString& rTemplate)
-{
- OUString aRet = rTemplate;
-
- if (aRet.isEmpty())
- {
- // Empty template: then auto-generate a unique name.
- OUString aPrefix(SvxResId(STR_ObjNameSingulGRAF));
- aRet += aPrefix + OUString::number(++m_nCounter);
- }
-
- return aRet;
-}
-
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/writerfilter/source/dmapper/GraphicHelpers.hxx b/writerfilter/source/dmapper/GraphicHelpers.hxx
index 4d9c463945bf..1e7e7a5b3b5b 100644
--- a/writerfilter/source/dmapper/GraphicHelpers.hxx
+++ b/writerfilter/source/dmapper/GraphicHelpers.hxx
@@ -63,17 +63,6 @@ private:
sal_Int32 m_nType;
sal_Int32 m_nSide;
};
-
-/// Keeps track of the next available unique automatic name.
-class GraphicNamingHelper
-{
- int m_nCounter;
-
-public:
- GraphicNamingHelper();
- /// Name a graphic based on rTemplate.
- OUString NameGraphic(const OUString& rTemplate);
-};
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */