Jelajahi Sumber

removes more unused code

bergquist 7 tahun lalu
induk
melakukan
4a8e9cf93f
1 mengubah file dengan 0 tambahan dan 17 penghapusan
  1. 0 17
      pkg/services/sqlstore/alert_notification.go

+ 0 - 17
pkg/services/sqlstore/alert_notification.go

@@ -2,12 +2,10 @@ package sqlstore
 
 import (
 	"bytes"
-	"context"
 	"fmt"
 	"strings"
 	"time"
 
-	"github.com/go-xorm/xorm"
 	"github.com/grafana/grafana/pkg/bus"
 	m "github.com/grafana/grafana/pkg/models"
 )
@@ -248,21 +246,6 @@ func RecordNotificationJournal(cmd *m.RecordNotificationJournalCommand) error {
 	})
 }
 
-func startSession(ctx context.Context) *DBSession {
-	value := ctx.Value("db-session")
-	var sess *xorm.Session
-	sess, ok := value.(*xorm.Session)
-
-	if !ok {
-		return newSession()
-	}
-
-	old := newSession()
-	old.Session = sess
-
-	return old
-}
-
 func GetLatestNotification(cmd *m.GetLatestNotificationQuery) error {
 	return inTransaction(func(sess *DBSession) error {
 		notificationJournal := &m.AlertNotificationJournal{}