Remove unused debug code