aboutsummaryrefslogtreecommitdiffstats
path: root/models/db
diff options
context:
space:
mode:
Diffstat (limited to 'models/db')
-rw-r--r--models/db/store.go18
1 files changed, 0 insertions, 18 deletions
diff --git a/models/db/store.go b/models/db/store.go
deleted file mode 100644
index d5931e9521..0000000000
--- a/models/db/store.go
+++ /dev/null
@@ -1,18 +0,0 @@
-// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
-
-package db
-
-import (
- "github.com/lafriks/xormstore"
-)
-
-// CreateStore creates a xormstore for the provided table and key
-func CreateStore(table, key string) (*xormstore.Store, error) {
- store, err := xormstore.NewOptions(x, xormstore.Options{
- TableName: table,
- }, []byte(key))
-
- return store, err
-}