*: remove useless code (#2476)

This commit is contained in:
Lynn
2017-01-16 11:44:03 +08:00
committed by HuaiyuXu
parent 527256627b
commit 5bb751ee4b

View File

@ -94,19 +94,6 @@ func (h *stmtHistory) add(stmtID uint32, st ast.Statement, params ...interface{}
h.history = append(h.history, s)
}
func (h *stmtHistory) reset() {
if len(h.history) > 0 {
h.history = h.history[:0]
}
}
func (h *stmtHistory) clone() *stmtHistory {
nh := *h
nh.history = make([]*stmtRecord, len(h.history))
copy(nh.history, h.history)
return &nh
}
type session struct {
txn kv.Transaction // current transaction
txnCh chan *txnWithErr