summaryrefslogtreecommitdiff
path: root/sdext/source
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-18 16:57:21 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-19 06:42:34 +0000
commitb73f45ef0bf3230275c11fc9c70c22625332b695 (patch)
treec7cf36e27467ffe32d13a0183f5e15c72586c168 /sdext/source
parent727d4dbebaf947593ce5caae6915238c8c4f3da2 (diff)
loplugin:unusedmethods in sd
Change-Id: I27da3e7afd86217ec9f75958775da9c144d7a0a5 Reviewed-on: https://gerrit.libreoffice.org/25111 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sdext/source')
-rw-r--r--sdext/source/pdfimport/sax/saxattrlist.hxx1
-rw-r--r--sdext/source/pdfimport/tree/genericelements.cxx4
-rw-r--r--sdext/source/pdfimport/tree/genericelements.hxx3
-rw-r--r--sdext/source/pdfimport/tree/style.hxx1
-rw-r--r--sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx16
-rw-r--r--sdext/source/presenter/PresenterUIPainter.hxx3
6 files changed, 2 insertions, 26 deletions
diff --git a/sdext/source/pdfimport/sax/saxattrlist.hxx b/sdext/source/pdfimport/sax/saxattrlist.hxx
index c8c76f34fffa..04b766460177 100644
--- a/sdext/source/pdfimport/sax/saxattrlist.hxx
+++ b/sdext/source/pdfimport/sax/saxattrlist.hxx
@@ -47,7 +47,6 @@ namespace pdfi
std::unordered_map< OUString, size_t, OUStringHash > m_aIndexMap;
public:
- SaxAttrList() {}
explicit SaxAttrList( const std::unordered_map< OUString, OUString, OUStringHash >& );
SaxAttrList( const SaxAttrList& );
virtual ~SaxAttrList();
diff --git a/sdext/source/pdfimport/tree/genericelements.cxx b/sdext/source/pdfimport/tree/genericelements.cxx
index 2da786057667..c5c61a4d8b74 100644
--- a/sdext/source/pdfimport/tree/genericelements.cxx
+++ b/sdext/source/pdfimport/tree/genericelements.cxx
@@ -32,10 +32,6 @@
namespace pdfi
{
-ElementFactory::~ElementFactory()
-{
-}
-
Element::~Element()
{
while( !Children.empty() )
diff --git a/sdext/source/pdfimport/tree/genericelements.hxx b/sdext/source/pdfimport/tree/genericelements.hxx
index 7099cb99cd2a..55b6b00306af 100644
--- a/sdext/source/pdfimport/tree/genericelements.hxx
+++ b/sdext/source/pdfimport/tree/genericelements.hxx
@@ -286,8 +286,7 @@ namespace pdfi
class ElementFactory
{
public:
- ElementFactory() {}
- virtual ~ElementFactory();
+ ElementFactory() = delete;
static HyperlinkElement* createHyperlinkElement( Element* pParent, const OUString& rURI )
{ return new HyperlinkElement( pParent, rURI ); }
diff --git a/sdext/source/pdfimport/tree/style.hxx b/sdext/source/pdfimport/tree/style.hxx
index 31be3dbdf86e..9d3edd0a90f0 100644
--- a/sdext/source/pdfimport/tree/style.hxx
+++ b/sdext/source/pdfimport/tree/style.hxx
@@ -43,7 +43,6 @@ namespace pdfi
Element* ContainedElement;
std::vector< Style* > SubStyles;
- Style() : ContainedElement( nullptr ) {}
Style( const OString& rName, const PropertyMap& rProps ) :
Name( rName ),
Properties( rProps ),
diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
index d52e3a0e3a76..73ea8bf1062b 100644
--- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
+++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
@@ -69,22 +69,6 @@ namespace pdfi
{
struct FontAttributes
{
- FontAttributes( const GooString& familyName_,
- bool isEmbedded_,
- bool isBold_,
- bool isItalic_,
- bool isUnderline_,
- double size_ ) :
- familyName(),
- isEmbedded(isEmbedded_),
- isBold(isBold_),
- isItalic(isItalic_),
- isUnderline(isUnderline_),
- size(size_)
- {
- familyName.append(const_cast<GooString*>(&familyName_));
- }
-
FontAttributes() :
familyName(),
isEmbedded(false),
diff --git a/sdext/source/presenter/PresenterUIPainter.hxx b/sdext/source/presenter/PresenterUIPainter.hxx
index ed58fd41b43f..1b5ef18332fc 100644
--- a/sdext/source/presenter/PresenterUIPainter.hxx
+++ b/sdext/source/presenter/PresenterUIPainter.hxx
@@ -32,8 +32,7 @@ namespace sdext { namespace presenter {
class PresenterUIPainter
{
public:
- PresenterUIPainter();
- ~PresenterUIPainter();
+ PresenterUIPainter() = delete;
PresenterUIPainter(const PresenterUIPainter&) = delete;
PresenterUIPainter& operator=(const PresenterUIPainter&) = delete;