libexpr: remove Value::determinePos
it was mostly useless, and now it's entirely unused. Change-Id: I015c83779a7f860e325796684639f05083a50676
This commit is contained in:
@@ -35,20 +35,6 @@ void Value::print(EvalState & state, std::ostream & str, PrintOptions options)
|
||||
printValue(state, str, *this, options);
|
||||
}
|
||||
|
||||
PosIdx Value::determinePos(const PosIdx pos) const
|
||||
{
|
||||
// Allow selecting a subset of enum values
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wswitch-enum"
|
||||
switch (internalType) {
|
||||
case tAttrs: return attrs->pos;
|
||||
case tLambda: return lambda.fun->pos;
|
||||
case tApp: return app.left->determinePos(pos);
|
||||
default: return pos;
|
||||
}
|
||||
#pragma GCC diagnostic pop
|
||||
}
|
||||
|
||||
bool Value::isTrivial() const
|
||||
{
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user