Fix warnings.

One instance of a unnecessary switch statement.
One instance of an unreferenced parameter.
:exclamation:  Also at line 308 (old), 305 (new) there is a redundant duplicate - since this instance will cause a return, rc is not altered in between then that instance is unreachable...