public function removeDefaultPort()
    {
        if ($this->port !== null
            && isset($this->defaultPorts[$this->getScheme()])
            && $this->defaultPorts[$this->getScheme()] === $this->port
        ) {
            $this->port = null;
        }
    }