Fixed unused variable warnings in VS