From a2c4610fceb8639e8b65216130485658b19e6416 Mon Sep 17 00:00:00 2001 From: Tim Voronov Date: Fri, 15 Mar 2019 00:00:21 -0400 Subject: [PATCH] Removed IteratorFn --- pkg/runtime/core/value.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pkg/runtime/core/value.go b/pkg/runtime/core/value.go index f2c32c4d..3c4853c6 100644 --- a/pkg/runtime/core/value.go +++ b/pkg/runtime/core/value.go @@ -49,11 +49,4 @@ type ( Value Value Types []Type } - - // IteratorFn represents an helper type to create closure based Iterator interface implementation. - IteratorFn = func(ctx context.Context) (value Value, key Value, err error) ) - -func (fn IteratorFn) Next(ctx context.Context) (value Value, key Value, err error) { - return fn(ctx) -}