From 3795c7131a90ac7e801886ab81d263529fc69335 Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Wed, 24 Apr 2019 16:02:23 -0500 Subject: [PATCH] Remove unused Batch.ctx --- batch.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/batch.go b/batch.go index aacda58e..4f769489 100644 --- a/batch.go +++ b/batch.go @@ -20,7 +20,6 @@ type batchItem struct { type Batch struct { conn *Conn items []*batchItem - ctx context.Context err error mrr *pgconn.MultiResultReader @@ -55,8 +54,6 @@ func (b *Batch) Send(ctx context.Context) error { return b.err } - b.ctx = ctx - batch := &pgconn.Batch{} for _, bi := range b.items {