File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,10 @@ package sqlstore
2
2
3
3
import (
4
4
"bytes"
5
- "context"
6
5
"fmt"
7
6
"strings"
8
7
"time"
9
8
10
- "github.com/go-xorm/xorm"
11
9
"github.com/grafana/grafana/pkg/bus"
12
10
m "github.com/grafana/grafana/pkg/models"
13
11
)
@@ -248,21 +246,6 @@ func RecordNotificationJournal(cmd *m.RecordNotificationJournalCommand) error {
248
246
})
249
247
}
250
248
251
- func startSession (ctx context.Context ) * DBSession {
252
- value := ctx .Value ("db-session" )
253
- var sess * xorm.Session
254
- sess , ok := value .(* xorm.Session )
255
-
256
- if ! ok {
257
- return newSession ()
258
- }
259
-
260
- old := newSession ()
261
- old .Session = sess
262
-
263
- return old
264
- }
265
-
266
249
func GetLatestNotification (cmd * m.GetLatestNotificationQuery ) error {
267
250
return inTransaction (func (sess * DBSession ) error {
268
251
notificationJournal := & m.AlertNotificationJournal {}
You can’t perform that action at this time.
0 commit comments