Skip to content

Commit 0e2fd64

Browse files
l46kokcopybara-github
authored andcommitted
Remove celVarToDecl method
PiperOrigin-RevId: 646579113
1 parent f2d2635 commit 0e2fd64

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

common/src/main/java/dev/cel/common/CelVarDecl.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,9 @@
1414

1515
package dev.cel.common;
1616

17-
import dev.cel.expr.Decl;
18-
import dev.cel.expr.Decl.IdentDecl;
1917
import com.google.auto.value.AutoValue;
20-
import com.google.common.annotations.VisibleForTesting;
2118
import com.google.errorprone.annotations.CheckReturnValue;
2219
import dev.cel.common.types.CelType;
23-
import dev.cel.common.types.CelTypes;
2420

2521
/** Abstract representation of a CEL variable declaration. */
2622
@AutoValue
@@ -37,13 +33,4 @@ public abstract class CelVarDecl {
3733
public static CelVarDecl newVarDeclaration(String name, CelType type) {
3834
return new AutoValue_CelVarDecl(name, type);
3935
}
40-
41-
/** Converts a {@link CelVarDecl} to a protobuf equivalent form {@code Decl} */
42-
@VisibleForTesting
43-
public static Decl celVarToDecl(CelVarDecl varDecl) {
44-
return Decl.newBuilder()
45-
.setName(varDecl.name())
46-
.setIdent(IdentDecl.newBuilder().setType(CelTypes.celTypeToType(varDecl.type())))
47-
.build();
48-
}
4936
}

0 commit comments

Comments
 (0)