private synchronized Profile basicRemoveMemberId(ProfileId id) {
    // must synchronize when modifying profile array

    int i = indexOfMemberId(id);
    if (i >= 0) {
      Profile profileRemoved = profiles[i];
      basicRemoveIndex(i);
      return profileRemoved;
    }
    return null;

  }
Perform work of removing the given member from this advisor.
geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionAdvisor.java