Skip to content

Commit

Permalink
remove some unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
qw4990 committed Apr 27, 2021
1 parent 2f28489 commit 6f26720
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions executor/distsql.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,13 +219,6 @@ func (e *IndexReaderExecutor) buildKeyRanges(sc *stmtctx.StatementContext, range
return distsql.IndexRangesToKVRanges(sc, physicalID, e.index.ID, ranges, e.feedback)
}

func (e *IndexReaderExecutor) buildPartitionTableKeyRanges(sc *stmtctx.StatementContext, physicalIDs []int64) ([]kv.KeyRange, error) {
if e.index.ID == -1 {
return distsql.CommonHandleRangesToKVRanges(sc, physicalIDs, e.ranges)
}
return distsql.IndexRangesToKVRangesForTables(sc, physicalIDs, e.index.ID, e.ranges, e.feedback)
}

// Open implements the Executor Open interface.
func (e *IndexReaderExecutor) Open(ctx context.Context) error {
var err error
Expand Down

0 comments on commit 6f26720

Please sign in to comment.