legacy/src/main/java/thredds/catalog/InvDatasetImpl.java
public boolean removeLocalMetadata(InvMetadata metadata) {
    InvDatasetImpl parentDataset = ((InvDatasetImpl) metadata.getParentDataset());
    List localMdata = parentDataset.getLocalMetadata().getMetadata();
    if (localMdata.contains(metadata)) {
      if (localMdata.remove(metadata)) {
        hashCode = 0; // Need to recalculate the hash code.
        return (true);
      }
    }
    return (false);
  }
public boolean removeLocalMetadata(InvMetadata metadata) {
    InvDatasetImpl parentDataset = ((InvDatasetImpl) metadata.getParentDataset());
    List localMdata = parentDataset.getLocalMetadata().getMetadata();
    if (localMdata.contains(metadata)) {
      if (localMdata.remove(metadata)) {
        hashCode = 0; // Need to recalculate the hash code.
        return (true);
      }
    }
    return (false);
  }
public boolean removeLocalMetadata ( InvMetadata metadata ) { InvDatasetImpl parentDataset = ( ( InvDatasetImpl ) metadata . getParentDataset ( ) ) ; List localMdata = parentDataset . getLocalMetadata ( ) . getMetadata ( ) ; if ( localMdata . contains ( metadata ) ) { if ( localMdata . remove ( metadata ) ) { hashCode = 0 ; // Need to recalculate the hash code. return ( true ) ; } } return ( false ) ; }
Remove the given InvMetadata from the set of metadata local to this dataset.

@param metadata remove this
@return true if an InvMetadata is removed, false otherwise.
Remove the given InvMetadata from the set of metadata local to this dataset .