private boolean cleanOldServerName(ServerName newServerName,
    Iterator<ServerName> deadServerIterator) {
    ServerName sn = deadServerIterator.next();
    if (ServerName.isSameAddress(sn, newServerName)) {
      // Remove from dead servers list. Don't remove from the processing list --
      // let the SCP do it when it is done.
      deadServerIterator.remove();
      return true;
    }
    return false;
  }
@param newServerName      Server to match port and hostname against.
@param deadServerIterator Iterator primed so can call 'next' on it.
@return True if <code>newServerName</code> and current primed iterator ServerName have same
        host and port and we removed old server from iterator and from processing list.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/DeadServer.java