summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-04 16:28:49 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-08-05 09:39:22 +0000
commit403c13487c36f4200adf0986c5d11398f719cd7a (patch)
tree21a4acf87dce1e6c8772f5cbcff3c2a3de21f4ba /writerfilter
parent10560949f90e08fe4a04dd91c7d388c4998100e8 (diff)
loplugin:unusedmethods
Change-Id: I6801618efb5a66d24156fa429e026acb6ca03aba Reviewed-on: https://gerrit.libreoffice.org/17506 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/dmapper/TableManager.hxx15
-rw-r--r--writerfilter/source/ooxml/OOXMLFastContextHandler.hxx3
-rw-r--r--writerfilter/source/ooxml/OOXMLPropertySet.hxx3
-rw-r--r--writerfilter/source/ooxml/OOXMLPropertySetImpl.cxx20
-rw-r--r--writerfilter/source/ooxml/OOXMLPropertySetImpl.hxx6
-rw-r--r--writerfilter/source/ooxml/OOXMLStreamImpl.hxx1
-rw-r--r--writerfilter/source/rtftok/rtfdocumentimpl.cxx1
-rw-r--r--writerfilter/source/rtftok/rtfdocumentimpl.hxx3
-rw-r--r--writerfilter/source/rtftok/rtffly.hxx15
9 files changed, 1 insertions, 66 deletions
diff --git a/writerfilter/source/dmapper/TableManager.hxx b/writerfilter/source/dmapper/TableManager.hxx
index 1a459cd1b784..2429f4d32bae 100644
--- a/writerfilter/source/dmapper/TableManager.hxx
+++ b/writerfilter/source/dmapper/TableManager.hxx
@@ -120,21 +120,6 @@ class TableManager
mbCellEnd = false;
}
- void resetProps()
- {
- mpProps.reset();
- }
-
- void setProps(TablePropertyMapPtr pProps)
- {
- mpProps = pProps;
- }
-
- TablePropertyMapPtr getProps()
- {
- return mpProps;
- }
-
void resetCellProps()
{
mpCellProps.reset();
diff --git a/writerfilter/source/ooxml/OOXMLFastContextHandler.hxx b/writerfilter/source/ooxml/OOXMLFastContextHandler.hxx
index 54b9bd33be43..a0a6b45b7fe6 100644
--- a/writerfilter/source/ooxml/OOXMLFastContextHandler.hxx
+++ b/writerfilter/source/ooxml/OOXMLFastContextHandler.hxx
@@ -123,8 +123,6 @@ public:
OUString getTargetForId(const OUString & rId);
- css::uno::Reference < css::xml::sax::XFastContextHandler > createFromStart(Token_t Element, const css::uno::Reference< css::xml::sax::XFastAttributeList >& Attribs);
-
void setDocument(OOXMLDocumentImpl* pDocument);
OOXMLDocumentImpl* getDocument();
void setXNoteId(OOXMLValue::Pointer_t pValue);
@@ -197,7 +195,6 @@ public:
void sendPropertyToParent();
- sal_uInt32 getInstanceNumber() { return mnInstanceNumber; }
protected:
OOXMLFastContextHandler * mpParent;
Id mId;
diff --git a/writerfilter/source/ooxml/OOXMLPropertySet.hxx b/writerfilter/source/ooxml/OOXMLPropertySet.hxx
index 85efac814805..33ec78a92036 100644
--- a/writerfilter/source/ooxml/OOXMLPropertySet.hxx
+++ b/writerfilter/source/ooxml/OOXMLPropertySet.hxx
@@ -40,8 +40,6 @@ public:
virtual std::string toString() const SAL_OVERRIDE = 0;
#endif
virtual void resolve(Properties & rProperties) = 0;
-
- virtual Sprm * clone() = 0;
};
class OOXMLPropertySet : public writerfilter::Reference<Properties>
@@ -55,7 +53,6 @@ public:
virtual void add(OOXMLProperty::Pointer_t pProperty) = 0;
virtual void add(OOXMLPropertySet::Pointer_t pPropertySet) = 0;
virtual OOXMLPropertySet * clone() const = 0;
- virtual void setType(const std::string & rsType) = 0;
#ifdef DEBUG_WRITERFILTER
virtual std::string toString() = 0;
diff --git a/writerfilter/source/ooxml/OOXMLPropertySetImpl.cxx b/writerfilter/source/ooxml/OOXMLPropertySetImpl.cxx
index 848b78a8c3fc..81d5bd02402a 100644
--- a/writerfilter/source/ooxml/OOXMLPropertySetImpl.cxx
+++ b/writerfilter/source/ooxml/OOXMLPropertySetImpl.cxx
@@ -123,11 +123,6 @@ string OOXMLPropertyImpl::toString() const
}
#endif
-Sprm * OOXMLPropertyImpl::clone()
-{
- return new OOXMLPropertyImpl(*this);
-}
-
void OOXMLPropertyImpl::resolve(writerfilter::Properties & rProperties)
{
writerfilter::Properties * pProperties = nullptr;
@@ -157,11 +152,6 @@ OOXMLValue::~OOXMLValue()
{
}
-bool OOXMLValue::getBool() const
-{
- return false;
-}
-
int OOXMLValue::getInt() const
{
return 0;
@@ -265,11 +255,6 @@ OOXMLBooleanValue::~OOXMLBooleanValue()
{
}
-bool OOXMLBooleanValue::getBool() const
-{
- return mbValue;
-}
-
int OOXMLBooleanValue::getInt() const
{
return mbValue ? 1 : 0;
@@ -460,11 +445,6 @@ OOXMLPropertySet * OOXMLPropertySetImpl::clone() const
return new OOXMLPropertySetImpl(*this);
}
-void OOXMLPropertySetImpl::setType(const string & rsType)
-{
- maType = OString(rsType.c_str(), rsType.size());
-}
-
#ifdef DEBUG_WRITERFILTER
string OOXMLPropertySetImpl::toString()
{
diff --git a/writerfilter/source/ooxml/OOXMLPropertySetImpl.hxx b/writerfilter/source/ooxml/OOXMLPropertySetImpl.hxx
index 3a8c0f74d1d6..65c3ce2f141a 100644
--- a/writerfilter/source/ooxml/OOXMLPropertySetImpl.hxx
+++ b/writerfilter/source/ooxml/OOXMLPropertySetImpl.hxx
@@ -43,7 +43,7 @@ public:
virtual ~OOXMLValue();
virtual int getInt() const SAL_OVERRIDE;
- virtual bool getBool() const;
+ ;
virtual OUString getString() const SAL_OVERRIDE;
virtual css::uno::Any getAny() const SAL_OVERRIDE;
virtual writerfilter::Reference<Properties>::Pointer_t getProperties() SAL_OVERRIDE;
@@ -77,7 +77,6 @@ public:
virtual std::string getName() const SAL_OVERRIDE;
virtual std::string toString() const SAL_OVERRIDE;
#endif
- virtual Sprm * clone() SAL_OVERRIDE;
virtual void resolve(Properties & rProperties) SAL_OVERRIDE;
};
@@ -108,7 +107,6 @@ public:
virtual ~OOXMLBooleanValue();
virtual int getInt() const SAL_OVERRIDE;
- virtual bool getBool() const SAL_OVERRIDE;
virtual css::uno::Any getAny() const SAL_OVERRIDE;
#ifdef DEBUG_WRITERFILTER
virtual std::string toString() const SAL_OVERRIDE;
@@ -175,8 +173,6 @@ public:
OOXMLProperties_t::const_iterator begin() const;
OOXMLProperties_t::const_iterator end() const;
- virtual void setType(const std::string & rsType) SAL_OVERRIDE;
-
#ifdef DEBUG_WRITERFILTER
virtual std::string toString() SAL_OVERRIDE;
#endif
diff --git a/writerfilter/source/ooxml/OOXMLStreamImpl.hxx b/writerfilter/source/ooxml/OOXMLStreamImpl.hxx
index bf900ba1642f..dba1871e4e68 100644
--- a/writerfilter/source/ooxml/OOXMLStreamImpl.hxx
+++ b/writerfilter/source/ooxml/OOXMLStreamImpl.hxx
@@ -81,7 +81,6 @@ public:
virtual css::uno::Reference<css::xml::sax::XFastTokenHandler> getFastTokenHandler() SAL_OVERRIDE;
- void setInputStream(css::uno::Reference<css::io::XInputStream> rxInputStream);
// Giving access to mxDocumentStream. It is needed by resolving custom xml to get list of customxml's used in document.
css::uno::Reference<css::io::XStream> accessDocumentStream() { return mxDocumentStream;}
};
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
index 7f8f7612b9d7..d398153a2c64 100644
--- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx
+++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
@@ -260,7 +260,6 @@ RTFDocumentImpl::RTFDocumentImpl(uno::Reference<uno::XComponentContext> const& x
m_aStyleTableEntries(),
m_nCurrentStyleIndex(0),
m_bFormField(false),
- m_bIsInFrame(false),
m_aUnicodeBuffer(),
m_aHexBuffer(),
m_bMathNor(false),
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.hxx b/writerfilter/source/rtftok/rtfdocumentimpl.hxx
index ae320adf5425..b610de05293e 100644
--- a/writerfilter/source/rtftok/rtfdocumentimpl.hxx
+++ b/writerfilter/source/rtftok/rtfdocumentimpl.hxx
@@ -360,7 +360,6 @@ public:
{
return *m_pMapperStream;
}
- void setSubstream(bool bIsSubtream);
void setSuperstream(RTFDocumentImpl* pSuperstream);
void setStreamType(Id nId);
void setAuthor(OUString& rAuthor);
@@ -564,8 +563,6 @@ private:
RTFReferenceTable::Entries_t m_aStyleTableEntries;
int m_nCurrentStyleIndex;
bool m_bFormField;
- /// If a frame start token is already sent to dmapper (nesting them is not OK).
- bool m_bIsInFrame;
// Unicode characters are collected here so we don't have to send them one by one.
OUStringBuffer m_aUnicodeBuffer;
/// Same for hex characters.
diff --git a/writerfilter/source/rtftok/rtffly.hxx b/writerfilter/source/rtftok/rtffly.hxx
index e33927a2e14a..505002f95af4 100644
--- a/writerfilter/source/rtftok/rtffly.hxx
+++ b/writerfilter/source/rtftok/rtffly.hxx
@@ -71,11 +71,6 @@ public:
return nAnchor;
}
- sal_uInt16 GetValue() const
- {
- return nVal;
- }
-
private:
sal_uInt16 nVal;
};
@@ -99,11 +94,6 @@ public:
return OSL_LONIBBLE(OSL_HIBYTE(nVal));
}
- sal_uInt16 GetRelAnchor() const
- {
- return OSL_HINIBBLE(OSL_LOBYTE(nVal));
- }
-
sal_Int32 GetAlign() const
{
sal_Int32 nAlign = 0;
@@ -148,11 +138,6 @@ public:
return nAnchor;
}
- sal_uInt16 GetValue() const
- {
- return nVal;
- }
-
private:
sal_uInt16 nVal;
};