summaryrefslogtreecommitdiffstats
path: root/modules/notification/base
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-01-16 17:24:20 +0100
committerAntoine GIRARD <sapk@users.noreply.github.com>2020-01-16 17:24:20 +0100
commit06cd3e03a24e23d2d838cda6eb1edd5e7474ad42 (patch)
tree357d85714ac01f66737a26c7a4c72309989ca976 /modules/notification/base
parent11885daaa0397d02d7acd559234b098dfd239d49 (diff)
downloadgitea-06cd3e03a24e23d2d838cda6eb1edd5e7474ad42.tar.gz
gitea-06cd3e03a24e23d2d838cda6eb1edd5e7474ad42.zip
[refactor] notify remove unused praram (#9804)
Diffstat (limited to 'modules/notification/base')
-rw-r--r--modules/notification/base/notifier.go3
-rw-r--r--modules/notification/base/null.go3
2 files changed, 2 insertions, 4 deletions
diff --git a/modules/notification/base/notifier.go b/modules/notification/base/notifier.go
index 12fde1737d..1c607ded3b 100644
--- a/modules/notification/base/notifier.go
+++ b/modules/notification/base/notifier.go
@@ -6,7 +6,6 @@ package base
import (
"code.gitea.io/gitea/models"
- "code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/repository"
)
@@ -32,7 +31,7 @@ type Notifier interface {
addedLabels []*models.Label, removedLabels []*models.Label)
NotifyNewPullRequest(*models.PullRequest)
- NotifyMergePullRequest(*models.PullRequest, *models.User, *git.Repository)
+ NotifyMergePullRequest(*models.PullRequest, *models.User)
NotifyPullRequestSynchronized(doer *models.User, pr *models.PullRequest)
NotifyPullRequestReview(*models.PullRequest, *models.Review, *models.Comment)
NotifyPullRequestChangeTargetBranch(doer *models.User, pr *models.PullRequest, oldBranch string)
diff --git a/modules/notification/base/null.go b/modules/notification/base/null.go
index 1f90f6519d..f6c423b469 100644
--- a/modules/notification/base/null.go
+++ b/modules/notification/base/null.go
@@ -6,7 +6,6 @@ package base
import (
"code.gitea.io/gitea/models"
- "code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/repository"
)
@@ -44,7 +43,7 @@ func (*NullNotifier) NotifyPullRequestReview(pr *models.PullRequest, r *models.R
}
// NotifyMergePullRequest places a place holder function
-func (*NullNotifier) NotifyMergePullRequest(pr *models.PullRequest, doer *models.User, baseRepo *git.Repository) {
+func (*NullNotifier) NotifyMergePullRequest(pr *models.PullRequest, doer *models.User) {
}
// NotifyPullRequestSynchronized places a place holder function