remove unused vars

you memorized `active` but never used it.