@@ -196,13 +196,13 @@ private extension ReaderCommentsViewController {
196
196
return [
197
197
[
198
198
. unapprove { [ weak self] in
199
- self ? . moderateComment ( comment, status: . pending, handler : handler )
199
+ self ? . moderateComment ( comment, status: . pending)
200
200
} ,
201
201
. spam { [ weak self] in
202
- self ? . moderateComment ( comment, status: . spam, handler : handler )
202
+ self ? . moderateComment ( comment, status: . spam)
203
203
} ,
204
204
. trash { [ weak self] in
205
- self ? . moderateComment ( comment, status: . unapproved, handler : handler )
205
+ self ? . moderateComment ( comment, status: . unapproved)
206
206
}
207
207
] ,
208
208
[
@@ -243,7 +243,7 @@ private extension ReaderCommentsViewController {
243
243
present ( navigationControllerToPresent, animated: true )
244
244
}
245
245
246
- func moderateComment( _ comment: Comment , status: CommentStatusType , handler : WPTableViewHandler ) {
246
+ func moderateComment( _ comment: Comment , status: CommentStatusType ) {
247
247
let successBlock : ( String ) -> Void = { [ weak self] noticeText in
248
248
self ? . commentModified = true
249
249
self ? . refreshAfterCommentModeration ( )
@@ -254,7 +254,7 @@ private extension ReaderCommentsViewController {
254
254
// If the status is Approved, the user has undone a comment moderation.
255
255
// So don't show the Undo option in this case.
256
256
( status == . approved) ? self ? . displayNotice ( title: noticeText) :
257
- self ? . showActionableNotice ( title: noticeText, comment: comment, handler : handler )
257
+ self ? . showActionableNotice ( title: noticeText, comment: comment)
258
258
}
259
259
260
260
switch status {
@@ -289,12 +289,12 @@ private extension ReaderCommentsViewController {
289
289
}
290
290
}
291
291
292
- func showActionableNotice( title: String , comment: Comment , handler : WPTableViewHandler ) {
292
+ func showActionableNotice( title: String , comment: Comment ) {
293
293
displayActionableNotice ( title: title,
294
294
actionTitle: . undoActionTitle,
295
295
actionHandler: { [ weak self] _ in
296
296
// 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)
298
298
} )
299
299
}
300
300
0 commit comments