Removing unused variables in controller.

As I was using this for a hobby project I noticed there were a few bits of code that wasn't used. I thought I'd just send a pull request with a small amount of cleanup.

Thank you!