aeron-cluster/src/main/java/io/aeron/cluster/ClusterMember.java
public static ClusterMember[] removeMember(final ClusterMember[] oldMembers, final int memberId)
    {
        return ArrayUtil.remove(oldMembers, findMemberIndex(oldMembers, memberId));
    }
public static ClusterMember[] removeMember(final ClusterMember[] oldMembers, final int memberId)
    {
        return ArrayUtil.remove(oldMembers, findMemberIndex(oldMembers, memberId));
    }
Remove a member from an array if found, otherwise return the array unmodified.

@param oldMembers to remove a member from.
@param memberId   of the member to remove.
@return a new array with the member removed or the existing array if not found.