timer.c: remove unused function: expired
timer.c: include config.h