cp_callback: don\'t compile dead code