cook: Remove unused debug functions.