Use new UNUSED macro in dock.c