aboutsummaryrefslogtreecommitdiff
path: root/tx.go
diff options
context:
space:
mode:
authorMatt Joiner <anacrolix@gmail.com>2019-11-06 16:14:47 +1100
committerMatt Joiner <anacrolix@gmail.com>2019-11-06 16:14:47 +1100
commite749ba3531cf430b66e1d3f310f53ea2972e3aa3 (patch)
tree328dbb9b2078908a8967483a0829ac4acb54cc9a /tx.go
parentAdd WouldBlock (diff)
downloadstm-e749ba3531cf430b66e1d3f310f53ea2972e3aa3.tar.gz
stm-e749ba3531cf430b66e1d3f310f53ea2972e3aa3.tar.xz
Make returns explicit
Diffstat (limited to 'tx.go')
-rw-r--r--tx.go8
1 files changed, 0 insertions, 8 deletions
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)