cw.c: remove unused function