Skip to content

Commit 3ce3981

Browse files
committed
Remove unused action
1 parent e24b7e0 commit 3ce3981

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/main/scala/gitbucket/notifications/controller/NotificationsController.scala

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import gitbucket.core.service.{AccountService, IssuesService, RepositoryService}
55
import gitbucket.core.util.Implicits._
66
import gitbucket.core.util.ReadableUsersAuthenticator
77
import gitbucket.core.util.SyntaxSugars._
8-
import gitbucket.notifications.html
98
import gitbucket.notifications.model.Watch
109
import gitbucket.notifications.service.NotificationsService
1110
import org.scalatra.Ok
@@ -16,17 +15,6 @@ class NotificationsController extends NotificationsControllerBase
1615
trait NotificationsControllerBase extends ControllerBase {
1716
self: NotificationsService with RepositoryService with AccountService with IssuesService with ReadableUsersAuthenticator =>
1817

19-
get("/:owner/:repository/watch")(readableUsersOnly { repository =>
20-
defining(repository.owner, repository.name, context.loginAccount.get.userName) { case (owner, name, userName) =>
21-
html.watch(
22-
getWatch(owner, name, userName).map(_.notification) getOrElse {
23-
if (autoSubscribeUsersForRepository(owner, name) contains userName) Watch.Watching else Watch.NotWatching
24-
},
25-
repository
26-
)
27-
}
28-
})
29-
3018
ajaxPost("/:owner/:repository/watch")(readableUsersOnly { repository =>
3119
params.get("notification").flatMap(Watch.Notification.valueOf).map { notification =>
3220
updateWatch(repository.owner, repository.name, context.loginAccount.get.userName, notification)

0 commit comments

Comments
 (0)