Clean up warnings

`run_idle` was defined but not referenced.

`candidate` and `current` have different types, so the statement `candidate =
`current` was invalid.