Remove unused ports.