Mostly, this was dead code. In some cases, the variable looked useful in debug, so I kept it but mark it unused by casting it to void.