summaryrefslogtreecommitdiffstats
path: root/models/models.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/models.go')
-rw-r--r--models/models.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/models/models.go b/models/models.go
index 02a782cde3..6a8fbfe624 100644
--- a/models/models.go
+++ b/models/models.go
@@ -49,13 +49,6 @@ type Engine interface {
Where(interface{}, ...interface{}) *xorm.Session
}
-func sessionRelease(sess *xorm.Session) {
- if !sess.IsCommitedOrRollbacked {
- sess.Rollback()
- }
- sess.Close()
-}
-
var (
x *xorm.Engine
tables []interface{}