Skip to content

Commit 99e1a77

Browse files
committed
Remove unused param.
1 parent 37a8636 commit 99e1a77

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

WordPress/Classes/ViewRelated/Reader/Comments/ReaderCommentsViewController.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -196,13 +196,13 @@ private extension ReaderCommentsViewController {
196196
return [
197197
[
198198
.unapprove { [weak self] in
199-
self?.moderateComment(comment, status: .pending, handler: handler)
199+
self?.moderateComment(comment, status: .pending)
200200
},
201201
.spam { [weak self] in
202-
self?.moderateComment(comment, status: .spam, handler: handler)
202+
self?.moderateComment(comment, status: .spam)
203203
},
204204
.trash { [weak self] in
205-
self?.moderateComment(comment, status: .unapproved, handler: handler)
205+
self?.moderateComment(comment, status: .unapproved)
206206
}
207207
],
208208
[
@@ -243,7 +243,7 @@ private extension ReaderCommentsViewController {
243243
present(navigationControllerToPresent, animated: true)
244244
}
245245

246-
func moderateComment(_ comment: Comment, status: CommentStatusType, handler: WPTableViewHandler) {
246+
func moderateComment(_ comment: Comment, status: CommentStatusType) {
247247
let successBlock: (String) -> Void = { [weak self] noticeText in
248248
self?.commentModified = true
249249
self?.refreshAfterCommentModeration()
@@ -254,7 +254,7 @@ private extension ReaderCommentsViewController {
254254
// If the status is Approved, the user has undone a comment moderation.
255255
// So don't show the Undo option in this case.
256256
(status == .approved) ? self?.displayNotice(title: noticeText) :
257-
self?.showActionableNotice(title: noticeText, comment: comment, handler: handler)
257+
self?.showActionableNotice(title: noticeText, comment: comment)
258258
}
259259

260260
switch status {
@@ -289,12 +289,12 @@ private extension ReaderCommentsViewController {
289289
}
290290
}
291291

292-
func showActionableNotice(title: String, comment: Comment, handler: WPTableViewHandler) {
292+
func showActionableNotice(title: String, comment: Comment) {
293293
displayActionableNotice(title: title,
294294
actionTitle: .undoActionTitle,
295295
actionHandler: { [weak self] _ in
296296
// Set the Comment's status back to Approved when the user selects Undo on the notice.
297-
self?.moderateComment(comment, status: .approved, handler: handler)
297+
self?.moderateComment(comment, status: .approved)
298298
})
299299
}
300300

0 commit comments

Comments
 (0)