Skip to content

Commit

Permalink
Remove eval overload that accepts an Activation
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 584069087
  • Loading branch information
l46kok authored and copybara-github committed Nov 21, 2023
1 parent ee4b80f commit 2741b8d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions runtime/src/main/java/dev/cel/runtime/CelRuntime.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,6 @@ public Object eval(Message message) throws CelEvaluationException {
return evalInternal(Activation.fromProto(message, getOptions()));
}

/** Evaluate a compiled program with an {@code activation} instance. */
public Object eval(Activation activation) throws CelEvaluationException {
return evalInternal(activation);
}

/** Evaluate a compiled program with a custom variable {@code resolver}. */
public Object eval(CelVariableResolver resolver) throws CelEvaluationException {
return evalInternal((name) -> resolver.find(name).orElse(null));
Expand Down

0 comments on commit 2741b8d

Please sign in to comment.