remove unused code

This commit is contained in:
Yuce Tekol 2019-05-31 17:35:50 +03:00
parent 592a191aee
commit 1379cbbcd6
No known key found for this signature in database
GPG key ID: CB59E46D2FB90573

View file

@ -785,9 +785,6 @@ func (e *executor) executeMaxShard(ctx context.Context, index string, c *pql.Cal
// executeMaxRowShard returns the minimum row ID for a shard.
func (e *executor) executeMaxRowShard(ctx context.Context, index string, c *pql.Call, shard uint64) (Pair, error) {
span, ctx := tracing.StartSpanFromContext(ctx, "Executor.executeMaxRowShard")
defer span.Finish()
fieldName, _ := c.Args["field"].(string)
field := e.Holder.Field(index, fieldName)
if field == nil {