Neglected to remove unused debug function