From dd728f28ede2a4372903a27d5b2d0c5acf4f2d3f Mon Sep 17 00:00:00 2001 From: Yuce Tekol Date: Fri, 31 May 2019 17:13:25 +0300 Subject: [PATCH] remove unused code --- executor.go | 6 ------ fragment.go | 8 -------- 2 files changed, 14 deletions(-) diff --git a/executor.go b/executor.go index 56785ad48..12789c3dd 100644 --- a/executor.go +++ b/executor.go @@ -724,9 +724,6 @@ func (e *executor) executeMinShard(ctx context.Context, index string, c *pql.Cal // executeMinRowShard returns the minimum row ID for a shard. func (e *executor) executeMinRowShard(ctx context.Context, index string, c *pql.Call, shard uint64) (Pair, error) { - span, ctx := tracing.StartSpanFromContext(ctx, "Executor.executeMinRowShard") - defer span.Finish() - fieldName, _ := c.Args["field"].(string) field := e.Holder.Field(index, fieldName) if field == nil { @@ -750,9 +747,6 @@ func (e *executor) executeMinRowShard(ctx context.Context, index string, c *pql. // executeMaxShard calculates the max for bsiGroups on a shard. func (e *executor) executeMaxShard(ctx context.Context, index string, c *pql.Call, shard uint64) (ValCount, error) { - span, ctx := tracing.StartSpanFromContext(ctx, "Executor.executeMaxShard") - defer span.Finish() - var filter *Row if len(c.Children) == 1 { row, err := e.executeBitmapCallShard(ctx, index, c.Children[0], shard) diff --git a/fragment.go b/fragment.go index b162b965e..87e7915b1 100644 --- a/fragment.go +++ b/fragment.go @@ -1031,14 +1031,6 @@ func (f *fragment) maxUnsigned(filter *Row, bitDepth uint) (max int64, count uin return max, count } -func (f *fragment) rowIDMin() (uint64, bool) { - return f.minRowID, f.hasRowID -} - -func (f *fragment) rowIDMax() uint64 { - return f.maxRowID -} - // rangeOp returns bitmaps with a bsiGroup value encoding matching the predicate. func (f *fragment) rangeOp(op pql.Token, bitDepth uint, predicate int64) (*Row, error) { switch op {