The comment_admin_overview() function (in comment.admin.inc) takes a first parameter called $type. This parameter is not used. It's actually DOCUMENTED as "not used" in the comment's doxygen block. So... why is it still there?

Attached patch removes the parameter, the doxygen comment, and the argument (from the one spot where the function is called). No-brainer.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Status: Needs review » Needs work

The last submitted patch failed testing.

Jaza’s picture

Status: Needs work » Needs review
FileSize
1.23 KB

Oops, the parameter can also be removed from comment_admin().

Status: Needs review » Needs work

The last submitted patch failed testing.

R.Muilwijk’s picture

Status: Needs work » Needs review
FileSize
885 bytes

Reroll with small logic fix. Also did a grep to find more instances but found nothing.

R.Muilwijk’s picture

Assigned: Jaza » Unassigned
jhodgdon’s picture

FileSize
1.11 KB

This patch brings the doc up to standards.

As a note, it appears that the unused argument to comment_admin_overview() was removed earlier on some other issue, but whoever did that didn't remove it from the calling function. So the code in the above patch is correctly removing it.

Dries’s picture

Status: Needs review » Fixed

Committed to CVS HEAD. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.