summaryrefslogtreecommitdiff
path: root/idlc/inc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-09-26 21:54:07 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-09-26 21:54:07 +0200
commitbc1fdb79b0a7eba791bf7f5749a8a45ad6a94bff (patch)
tree32cbc6c06e730efac4ab325fcda5ca48480a8dc6 /idlc/inc
parent6dbc69bdf44f1933687b93b4c1838b57804ecc17 (diff)
The only EvalKind actually used is EK_const
Change-Id: Ide451d1e287eeb8666b9ddcce312b9a753761c50
Diffstat (limited to 'idlc/inc')
-rw-r--r--idlc/inc/idlc/astexpression.hxx19
1 files changed, 6 insertions, 13 deletions
diff --git a/idlc/inc/idlc/astexpression.hxx b/idlc/inc/idlc/astexpression.hxx
index 1e38895fd1ee..327cbe9803c9 100644
--- a/idlc/inc/idlc/astexpression.hxx
+++ b/idlc/inc/idlc/astexpression.hxx
@@ -41,13 +41,6 @@ enum ExprComb
EC_symbol // a symbol (function or constant name)
};
-// Enum to define the different kinds of evaluation possible
-enum EvalKind
-{
- EK_const, // Must evaluate to constant
- EK_positive_int // Must evaluate to positive integer
-};
-
// Enum to define expression type
enum ExprType
{
@@ -118,7 +111,7 @@ public:
AstExprValue* coerce(ExprType type, bool bAssign=true);
// Evaluate then store value inside this AstExpression
- void evaluate(EvalKind ek);
+ void evaluate();
// Compare to AstExpressions
bool operator==(AstExpression *pExpr);
@@ -129,12 +122,12 @@ private:
// Fill out the lineno, filename and definition scope details
void fillDefinitionDetails();
// Internal evaluation
- AstExprValue* eval_internal(EvalKind ek);
+ AstExprValue* eval_internal();
// Evaluate different sets of operators
- AstExprValue* eval_bin_op(EvalKind ek);
- AstExprValue* eval_bit_op(EvalKind ek);
- AstExprValue* eval_un_op(EvalKind ek);
- AstExprValue* eval_symbol(EvalKind ek);
+ AstExprValue* eval_bin_op();
+ AstExprValue* eval_bit_op();
+ AstExprValue* eval_un_op();
+ AstExprValue* eval_symbol();
AstScope* m_pScope; // scope defined in
sal_Int32 m_lineNo; // line number defined in