Skip to content

Commit 4a8e9cf

Browse files
committed
removes more unused code
1 parent 850aa21 commit 4a8e9cf

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

pkg/services/sqlstore/alert_notification.go

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@ package sqlstore
22

33
import (
44
"bytes"
5-
"context"
65
"fmt"
76
"strings"
87
"time"
98

10-
"github.com/go-xorm/xorm"
119
"github.com/grafana/grafana/pkg/bus"
1210
m "github.com/grafana/grafana/pkg/models"
1311
)
@@ -248,21 +246,6 @@ func RecordNotificationJournal(cmd *m.RecordNotificationJournalCommand) error {
248246
})
249247
}
250248

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-
266249
func GetLatestNotification(cmd *m.GetLatestNotificationQuery) error {
267250
return inTransaction(func(sess *DBSession) error {
268251
notificationJournal := &m.AlertNotificationJournal{}

0 commit comments

Comments
 (0)