removed undeclared and unused function in Optimizer

Whoops, forgot to remove that...