From 7cae3651e376c896c4405709545302c931a627ca Mon Sep 17 00:00:00 2001 From: Seebs Date: Mon, 23 Jan 2023 16:14:30 -0600 Subject: [PATCH] remove unused computation of index --- executor.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/executor.go b/executor.go index ae62de9a9..51288bfa7 100644 --- a/executor.go +++ b/executor.go @@ -506,10 +506,6 @@ func (e *executor) dumpPrecomputedCalls(ctx context.Context, c *pql.Call) { // handlePreCallChildren handles any pre-calls in the children of a given call. func (e *executor) handlePreCallChildren(ctx context.Context, qcx *Qcx, index string, c *pql.Call, shards []uint64, opt *ExecOptions) error { - idx := e.Holder.Index(index) - if idx == nil { - return newNotFoundError(ErrIndexNotFound, index) - } for _, child := range c.Children { if err := ctx.Err(); err != nil { return err