From 39543d6bb864eea5ad5d24de58b87bbddd1d5aca Mon Sep 17 00:00:00 2001 From: Moshe Immermam Date: Wed, 1 Nov 2023 18:33:48 +0200 Subject: [PATCH] chore: remove obsolete code --- strings/duration_gen.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/strings/duration_gen.go b/strings/duration_gen.go index 11671f5ef..74cd1e20e 100644 --- a/strings/duration_gen.go +++ b/strings/duration_gen.go @@ -9,16 +9,6 @@ import ( "github.com/google/cel-go/common/types/ref" ) -// var durationHumanize = cel.Function("HumanDuration", -// cel.Overload("duration.HumanDuration", -// []*cel.Type{cel.DynType}, -// cel.StringType, -// cel.UnaryBinding(func(value ref.Val) ref.Val { -// return types.String(HumanDuration(value.Value())) -// }), -// ), -// ) - func age(value ref.Val) ref.Val { switch v := value.Value().(type) { case int, int32, int64, float32, float64: