grouping.c: detect_groups: drop unused variable