Removes return statement that doesn't match void signature.