From 5bb751ee4b0e0cd2f91affb87e0904089dca38c8 Mon Sep 17 00:00:00 2001 From: Lynn Date: Mon, 16 Jan 2017 11:44:03 +0800 Subject: [PATCH] *: remove useless code (#2476) --- session.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/session.go b/session.go index e0457360a5..7385fa833b 100644 --- a/session.go +++ b/session.go @@ -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