Skip to content

Commit

Permalink
executor: clean code. (pingcap#4244)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanfei1991 authored and ngaut committed Aug 19, 2017
1 parent 3e1728b commit 5ac8210
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions executor/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ import (

var (
_ Executor = &CheckTableExec{}
_ Executor = &DummyScanExec{}
_ Executor = &ExistsExec{}
_ Executor = &HashAggExec{}
_ Executor = &LimitExec{}
Expand Down Expand Up @@ -799,17 +798,6 @@ func (e *UnionExec) Close() error {
return errors.Trace(e.baseExecutor.Close())
}

// DummyScanExec returns zero results, when some where condition never match, there won't be any
// rows to return, so DummyScan is used to avoid real scan on KV.
type DummyScanExec struct {
baseExecutor
}

// Next implements the Executor Next interface.
func (e *DummyScanExec) Next() (Row, error) {
return nil, nil
}

// CacheExec represents Cache executor.
// it stores the return values of the executor of its child node.
type CacheExec struct {
Expand Down

0 comments on commit 5ac8210

Please sign in to comment.