Skip to content

Commit

Permalink
executor: remove useless getTable function (pingcap#1439)
Browse files Browse the repository at this point in the history
  • Loading branch information
zimulala authored Jul 13, 2016
1 parent cca6cb5 commit cf0be8a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions executor/executor_write.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
"github.com/pingcap/tidb/model"
"github.com/pingcap/tidb/mysql"
"github.com/pingcap/tidb/plan"
"github.com/pingcap/tidb/sessionctx"
"github.com/pingcap/tidb/sessionctx/variable"
"github.com/pingcap/tidb/table"
"github.com/pingcap/tidb/terror"
Expand Down Expand Up @@ -379,10 +378,6 @@ func isMatchTableName(entry *RowKeyEntry, tblMap map[int64][]string) bool {
return false
}

func (e *DeleteExec) getTable(ctx context.Context, tableName *ast.TableName) (table.Table, error) {
return sessionctx.GetDomain(ctx).InfoSchema().TableByName(tableName.Schema, tableName.Name)
}

func (e *DeleteExec) removeRow(ctx context.Context, t table.Table, h int64, data []types.Datum) error {
err := t.RemoveRecord(ctx, h, data)
if err != nil {
Expand Down

0 comments on commit cf0be8a

Please sign in to comment.