Detects unused local functions