Remove unused addIfNoPort.
Merge pull request #626 from stephenh/remove-add-if-no-port

Remove unused addIfNoPort.