[PATCH 1/4] detect: Remove detect.c