private ServerName stripServer(List<ServerName> regionServers, String hostname, int port) {
    for (Iterator<ServerName> iter = regionServers.iterator(); iter.hasNext();) {
      ServerName server = iter.next();
      if (
        server.getAddress().getHostName().equalsIgnoreCase(hostname)
          && server.getAddress().getPort() == port
      ) {
        iter.remove();
        return server;
      }
    }
    return null;
  }
Remove the servername whose hostname and port portion matches from the passed array of servers.
Returns as side-effect the servername removed.
@return server removed from list of Region Servers
hbase-server/src/main/java/org/apache/hadoop/hbase/util/RegionMover.java