discover: Fix unused function warning