diff options
author | Unknwon <u@gogs.io> | 2018-03-09 00:33:40 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2018-03-09 00:33:40 -0500 |
commit | 86d249eb16bfaa4199379aadfd64bdae72f91fea (patch) | |
tree | 6f6f7637912570221e39086daf94b021b2b2d4b9 | |
parent | 28f74cf1c67cde80ae453a799d76752114fd5e18 (diff) |
migrations: remove unused function and fix compile error
-rw-r--r-- | gogs.go | 2 | ||||
-rw-r--r-- | models/migrations/migrations.go | 7 | ||||
-rw-r--r-- | templates/.VERSION | 2 |
3 files changed, 2 insertions, 9 deletions
@@ -16,7 +16,7 @@ import ( "github.com/gogits/gogs/pkg/setting" ) -const APP_VER = "0.11.36.0308" +const APP_VER = "0.11.37.0309" func init() { setting.AppVer = APP_VER diff --git a/models/migrations/migrations.go b/models/migrations/migrations.go index ef8a4e6d..06747d38 100644 --- a/models/migrations/migrations.go +++ b/models/migrations/migrations.go @@ -133,13 +133,6 @@ In case you're stilling getting this notice, go through instructions again until return nil } -func sessionRelease(sess *xorm.Session) { - if !sess.IsCommitedOrRollbacked { - sess.Rollback() - } - sess.Close() -} - func generateOrgRandsAndSalt(x *xorm.Engine) (err error) { type User struct { ID int64 `xorm:"pk autoincr"` diff --git a/templates/.VERSION b/templates/.VERSION index 129c3211..501183ae 100644 --- a/templates/.VERSION +++ b/templates/.VERSION @@ -1 +1 @@ -0.11.36.0308
\ No newline at end of file +0.11.37.0309
\ No newline at end of file |