File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed
common/src/main/java/dev/cel/common Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change 1414
1515package dev .cel .common ;
1616
17- import dev .cel .expr .Decl ;
18- import dev .cel .expr .Decl .IdentDecl ;
1917import com .google .auto .value .AutoValue ;
20- import com .google .common .annotations .VisibleForTesting ;
2118import com .google .errorprone .annotations .CheckReturnValue ;
2219import 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}
You can’t perform that action at this time.
0 commit comments