daemon/common.c: remove unused function