Skip to content

Commit

Permalink
Remove the legacy createInterpretable(CheckedExpr)
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 695519680
  • Loading branch information
TristonianJones authored and copybara-github committed Nov 12, 2024
1 parent c7a95d5 commit 3cb263a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 21 deletions.
2 changes: 0 additions & 2 deletions runtime/src/main/java/dev/cel/runtime/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ java_library(
],
deps = [
":runtime_helper",
"//:auto_value",
"//common",
"//common:error_codes",
"//common:options",
Expand Down Expand Up @@ -85,7 +84,6 @@ java_library(
"//common:error_codes",
"//common:features",
"//common:options",
"//common:proto_ast",
"//common:runtime_exception",
"//common/annotations",
"//common/ast",
Expand Down
8 changes: 0 additions & 8 deletions runtime/src/main/java/dev/cel/runtime/DefaultInterpreter.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

package dev.cel.runtime;

import dev.cel.expr.CheckedExpr;
import dev.cel.expr.Value;
import com.google.auto.value.AutoValue;
import com.google.common.base.Preconditions;
Expand All @@ -24,7 +23,6 @@
import dev.cel.common.CelAbstractSyntaxTree;
import dev.cel.common.CelErrorCode;
import dev.cel.common.CelOptions;
import dev.cel.common.CelProtoAbstractSyntaxTree;
import dev.cel.common.annotations.Internal;
import dev.cel.common.ast.CelConstant;
import dev.cel.common.ast.CelExpr;
Expand Down Expand Up @@ -122,12 +120,6 @@ public DefaultInterpreter(
this.celOptions = celOptions;
}

@Override
@Deprecated
public Interpretable createInterpretable(CheckedExpr checkedExpr) {
return createInterpretable(CelProtoAbstractSyntaxTree.fromCheckedExpr(checkedExpr).getAst());
}

@Override
public Interpretable createInterpretable(CelAbstractSyntaxTree ast) {
return new DefaultInterpretable(typeProvider, dispatcher, ast, celOptions);
Expand Down
11 changes: 0 additions & 11 deletions runtime/src/main/java/dev/cel/runtime/Interpreter.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

package dev.cel.runtime;

import dev.cel.expr.CheckedExpr;
import javax.annotation.concurrent.ThreadSafe;
import dev.cel.common.CelAbstractSyntaxTree;
import dev.cel.common.annotations.Internal;
Expand All @@ -28,16 +27,6 @@
@Internal
public interface Interpreter {

/**
* Creates an interpretable for the given expression.
*
* <p>This method may run pre-processing and partial evaluation of the expression it gets passed.
*
* @deprecated Use {@link #createInterpretable(CelAbstractSyntaxTree)} instead.
*/
@Deprecated
Interpretable createInterpretable(CheckedExpr checkedExpr) throws InterpreterException;

/**
* Creates an interpretable for the given expression.
*
Expand Down

0 comments on commit 3cb263a

Please sign in to comment.