cdm/src/main/java/ucar/nc2/Structure.java
public boolean removeMemberVariable( Variable v) {
    if (isImmutable()) throw new IllegalStateException("Cant modify");
    if (v == null) return false;
    //smembers = null;
    java.util.Iterator<Variable> iter = members.iterator();
    while (iter.hasNext()) {
      Variable mv =  iter.next();
      if (mv.getShortName().equals(v.getShortName())) {
        iter.remove();
        memberHash.remove( v.getShortName());
        return true;
      }
    }
    return false;
  }
public boolean removeMemberVariable( Variable v) {
    if (isImmutable()) throw new IllegalStateException("Cant modify");
    if (v == null) return false;
    //smembers = null;
    java.util.Iterator<Variable> iter = members.iterator();
    while (iter.hasNext()) {
      Variable mv =  iter.next();
      if (mv.getShortName().equals(v.getShortName())) {
        iter.remove();
        memberHash.remove( v.getShortName());
        return true;
      }
    }
    return false;
  }
public boolean removeMemberVariable ( Variable v ) { if ( isImmutable ( ) ) throw new IllegalStateException ( "Cant modify" ) ; if ( v == null ) return false ; //smembers = null; java . util . Iterator < Variable > iter = members . iterator ( ) ; while ( iter . hasNext ( ) ) { Variable mv = iter . next ( ) ; if ( mv . getShortName ( ) . equals ( v . getShortName ( ) ) ) { iter . remove ( ) ; memberHash . remove ( v . getShortName ( ) ) ; return true ; } } return false ; }
Remove a Variable : uses the Variable name to find it.
@param v remove this variable as a member of this structure
@return true if was found and removed
Remove a Variable : uses the Variable name to find it .