remove unused code

This commit is contained in:
Yuce Tekol 2019-05-31 17:13:25 +03:00
parent d2aca3bbfc
commit dd728f28ed
No known key found for this signature in database
GPG key ID: CB59E46D2FB90573
2 changed files with 0 additions and 14 deletions

View file

@ -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)

View file

@ -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 {