From e749ba3531cf430b66e1d3f310f53ea2972e3aa3 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Wed, 6 Nov 2019 16:14:47 +1100 Subject: Make returns explicit --- tx.go | 8 -------- 1 file changed, 8 deletions(-) (limited to 'tx.go') diff --git a/tx.go b/tx.go index 30100bf..14003f8 100644 --- a/tx.go +++ b/tx.go @@ -84,14 +84,6 @@ func (tx *Tx) Assert(p bool) { } } -func (tx *Tx) Return(v interface{}) { - panic(_return{v}) -} - -type _return struct { - value interface{} -} - func (tx *Tx) reset() { for k := range tx.reads { delete(tx.reads, k) -- cgit v1.2.3