summaryrefslogtreecommitdiff
path: root/idlc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-07-28 08:39:57 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-07-30 06:23:00 +0000
commita45827b2308febc7369db27fb489a6d1389534e1 (patch)
tree0b697341738010da35bd0a6a6189ef6761e5db0a /idlc
parent2387c2a46e15995686d28dccdfd455012072b4cf (diff)
loplugin:unusedmethods
Change-Id: Ib4d77ee01e7362f5951f81fceeca3c489872d971 Reviewed-on: https://gerrit.libreoffice.org/17378 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'idlc')
-rw-r--r--idlc/inc/idlc/astdeclaration.hxx6
-rw-r--r--idlc/inc/idlc/astenum.hxx2
-rw-r--r--idlc/inc/idlc/astexpression.hxx26
-rw-r--r--idlc/inc/idlc/astinterface.hxx11
-rw-r--r--idlc/inc/idlc/astoperation.hxx2
-rw-r--r--idlc/inc/idlc/astscope.hxx1
-rw-r--r--idlc/inc/idlc/aststruct.hxx3
-rw-r--r--idlc/inc/idlc/fehelper.hxx6
-rw-r--r--idlc/inc/idlc/idlc.hxx8
-rw-r--r--idlc/source/astinterface.cxx2
10 files changed, 0 insertions, 67 deletions
diff --git a/idlc/inc/idlc/astdeclaration.hxx b/idlc/inc/idlc/astdeclaration.hxx
index d7d7aec22274..12f2ee6aa4fc 100644
--- a/idlc/inc/idlc/astdeclaration.hxx
+++ b/idlc/inc/idlc/astdeclaration.hxx
@@ -77,8 +77,6 @@ public:
{ return m_pScope; }
const AstScope* getScope() const
{ return m_pScope; }
- void setScope(AstScope* pSc)
- { m_pScope = pSc; }
NodeType getNodeType() const
{ return m_nodeType; }
bool isInMainfile() const
@@ -101,10 +99,6 @@ public:
{ return m_documentation; }
void setDocumentation(const OUString& rDocumentation)
{ m_documentation = rDocumentation; }
- bool isAdded()
- { return m_bIsAdded; }
- void markAsAdded()
- { m_bIsAdded = true; }
virtual bool isType() const;
diff --git a/idlc/inc/idlc/astenum.hxx b/idlc/inc/idlc/astenum.hxx
index 98c386fc8ae4..91aeb9e09100 100644
--- a/idlc/inc/idlc/astenum.hxx
+++ b/idlc/inc/idlc/astenum.hxx
@@ -31,8 +31,6 @@ public:
virtual ~AstEnum();
- void setEnumValueCount(sal_Int32 count)
- { m_enumValueCount = count; }
sal_Int32 getEnumValueCount()
{ return m_enumValueCount++; }
diff --git a/idlc/inc/idlc/astexpression.hxx b/idlc/inc/idlc/astexpression.hxx
index 6f33b4d3696e..1e38895fd1ee 100644
--- a/idlc/inc/idlc/astexpression.hxx
+++ b/idlc/inc/idlc/astexpression.hxx
@@ -107,38 +107,12 @@ public:
virtual ~AstExpression();
// Data Accessors
- AstScope* getScope()
- { return m_pScope; }
- void setScope(AstScope* pScope)
- { m_pScope = pScope; }
- sal_Int32 getLine()
- { return m_lineNo; }
- void setLine(sal_Int32 l)
- { m_lineNo = l; }
- const OString& getFileName()
- { return m_fileName; }
- void setFileName(const OString& fileName)
- { m_fileName = fileName; }
ExprComb getCombOperator()
{ return m_combOperator; }
- void setCombOperator(ExprComb new_ec)
- { m_combOperator = new_ec; }
AstExprValue* getExprValue()
{ return m_exprValue; }
void setExprValue(AstExprValue *pEv)
{ m_exprValue = pEv; }
- AstExpression* getExpr1()
- { return m_subExpr1; }
- void setExpr1(AstExpression *pExpr)
- { m_subExpr1 = pExpr; }
- AstExpression* getExpr2()
- { return m_subExpr2; }
- void setExpr2(AstExpression *pExpr)
- { m_subExpr2 = pExpr; }
- OString* getSymbolicName()
- { return m_pSymbolicName; }
- void setSymbolicName(OString* pSymbolicName)
- { m_pSymbolicName = pSymbolicName; }
// Evaluation and value coercion
AstExprValue* coerce(ExprType type, bool bAssign=true);
diff --git a/idlc/inc/idlc/astinterface.hxx b/idlc/inc/idlc/astinterface.hxx
index e7a40ba3c456..54ad235c7afd 100644
--- a/idlc/inc/idlc/astinterface.hxx
+++ b/idlc/inc/idlc/astinterface.hxx
@@ -57,15 +57,6 @@ public:
bool hasMandatoryInheritedInterfaces() const
{ return m_mandatoryInterfaces > 0; }
- void setForwarded(bool bForwarded)
- { m_bForwarded = bForwarded; }
- bool isForwarded()
- { return m_bForwarded; }
- void setForwardedInSameFile(bool bForwarded)
- { m_bForwardedInSameFile = bForwarded; }
- bool isForwardedInSameFile()
- { return m_bForwardedInSameFile; }
-
void setDefined() { m_bIsDefined = true; }
bool isDefined() const
{ return m_bIsDefined; }
@@ -125,8 +116,6 @@ private:
InheritedInterfaces m_inheritedInterfaces;
InheritedInterfaces::size_type m_mandatoryInterfaces;
bool m_bIsDefined;
- bool m_bForwarded;
- bool m_bForwardedInSameFile;
bool m_bSingleInheritance;
VisibleInterfaces m_visibleInterfaces;
VisibleMembers m_visibleMembers;
diff --git a/idlc/inc/idlc/astoperation.hxx b/idlc/inc/idlc/astoperation.hxx
index fd70cc39675d..e521557abaf2 100644
--- a/idlc/inc/idlc/astoperation.hxx
+++ b/idlc/inc/idlc/astoperation.hxx
@@ -42,8 +42,6 @@ public:
bool isConstructor() const { return m_pReturnType == 0; }
void setExceptions(DeclList const * pExceptions);
- const DeclList& getExceptions()
- { return m_exceptions; }
sal_uInt16 nExceptions()
{ return (sal_uInt16)(m_exceptions.size()); }
diff --git a/idlc/inc/idlc/astscope.hxx b/idlc/inc/idlc/astscope.hxx
index 217afaffa940..c7d64a16dc2e 100644
--- a/idlc/inc/idlc/astscope.hxx
+++ b/idlc/inc/idlc/astscope.hxx
@@ -49,7 +49,6 @@ public:
// Look up the identifier 'name' specified only in the local scope
AstDeclaration* lookupByNameLocal(const OString& name) const;
- AstDeclaration* lookupInForwarded(const OString& scopedName);
AstDeclaration* lookupInInherited(const OString& scopedName) const;
// Look up a predefined type by its ExprType
diff --git a/idlc/inc/idlc/aststruct.hxx b/idlc/inc/idlc/aststruct.hxx
index 87c54754a491..1f0e878d836e 100644
--- a/idlc/inc/idlc/aststruct.hxx
+++ b/idlc/inc/idlc/aststruct.hxx
@@ -40,9 +40,6 @@ public:
AstScope* pScope);
virtual ~AstStruct();
- AstStruct const* getBaseType()
- { return m_pBaseType; }
-
DeclList::size_type getTypeParameterCount() const
{ return m_typeParameters.size(); }
diff --git a/idlc/inc/idlc/fehelper.hxx b/idlc/inc/idlc/fehelper.hxx
index 9c818e10923b..62566483435a 100644
--- a/idlc/inc/idlc/fehelper.hxx
+++ b/idlc/inc/idlc/fehelper.hxx
@@ -36,14 +36,8 @@ public:
FeDeclarator(const OString& name, DeclaratorType declType, AstDeclaration* pComplPart);
virtual ~FeDeclarator();
-
- AstDeclaration* getComplexPart()
- { return m_pComplexPart; }
const OString& getName()
{ return m_name; }
- DeclaratorType getDeclType()
- { return m_declType; }
-
bool checkType(AstDeclaration const * pType);
AstType const * compose(AstDeclaration const * pDecl);
private:
diff --git a/idlc/inc/idlc/idlc.hxx b/idlc/inc/idlc/idlc.hxx
index 22d43c8569dd..4a65dc04cdf9 100644
--- a/idlc/inc/idlc/idlc.hxx
+++ b/idlc/inc/idlc/idlc.hxx
@@ -54,8 +54,6 @@ public:
{ return m_pScopes; }
AstModule* getRoot()
{ return m_pRoot; }
- ErrorHandler* error()
- { return m_pErrorHandler; }
const OString& getFileName()
{ return m_fileName; }
void setFileName(const OString& fileName)
@@ -85,14 +83,10 @@ public:
{ m_bIsInMainfile = bInMainfile; }
sal_uInt32 getErrorCount()
{ return m_errorCount; }
- void setErrorCount(sal_uInt32 errorCount)
- { m_errorCount = errorCount; }
void incErrorCount()
{ m_errorCount++; }
sal_uInt32 getWarningCount()
{ return m_warningCount; }
- void setWarningCount(sal_uInt32 warningCount)
- { m_warningCount = warningCount; }
void incWarningCount()
{ m_warningCount++; }
sal_uInt32 getLineNumber()
@@ -114,8 +108,6 @@ public:
void addInclude(const OString& inc)
{ m_includes.insert(inc); }
- StringSet& getIncludes()
- { return m_includes; }
void setPublished(bool published) { m_published = published; }
bool isPublished() const { return m_published; }
diff --git a/idlc/source/astinterface.cxx b/idlc/source/astinterface.cxx
index 97d8f020170c..8dae59ea2bd7 100644
--- a/idlc/source/astinterface.cxx
+++ b/idlc/source/astinterface.cxx
@@ -34,8 +34,6 @@ AstInterface::AstInterface(const OString& name,
, AstScope(NT_interface)
, m_mandatoryInterfaces(0)
, m_bIsDefined(false)
- , m_bForwarded(false)
- , m_bForwardedInSameFile(false)
, m_bSingleInheritance(pInherits != 0)
{
if (pInherits != 0) {