private void removeTvShowSeason(TvShowSeason season){
synchronized (root) {
    TvShowSeasonTreeNode child=(TvShowSeasonTreeNode)nodeMap.get(season);
    TvShowTreeNode parent=null;
    if (child != null) {
      parent=(TvShowTreeNode)child.getParent();
    }
    if (parent != null && child != null) {
      int index=getIndexOfChild(parent,child);
      parent.remove(child);
      nodeMap.remove(season);
      if (index > -1) {
        TreeModelEvent event=new TreeModelEvent(this,parent.getPath(),new int[]{index},new Object[]{child});
        for (        TreeModelListener listener : listeners) {
          try {
            listener.treeNodesRemoved(event);
          }
 catch (          NullPointerException|ArrayIndexOutOfBoundsException ignored) {
          }
        }
      }
    }
  }
}

private void removeTvShowSeason ( TvShowSeason season ) { synchronized ( root ) { TvShowSeasonTreeNode child = ( TvShowSeasonTreeNode ) nodeMap . get ( season ) ; TvShowTreeNode parent = null ; if ( child != null ) { parent = ( TvShowTreeNode ) child . getParent ( ) ; } if ( parent != null && child != null ) { int index = getIndexOfChild ( parent , child ) ; parent . remove ( child ) ; nodeMap . remove ( season ) ; if ( index > - 1 ) { TreeModelEvent event = new TreeModelEvent ( this , parent . getPath ( ) , new int [ ] { index } , new Object [ ] { child } ) ; for ( TreeModelListener listener : listeners ) { try { listener . treeNodesRemoved ( event ) ; } catch ( NullPointerException | ArrayIndexOutOfBoundsException ignored ) { } } } } } }
removes the tv show season .
