Removed unnecessary switch statement.

Removed unnecessary switch statement.