src/main/java/com/spinyowl/legui/component/Frame.java
public void removeLayer(Layer layer) {
    if (layer == null || layer == tooltipLayer || layer == componentLayer) {
      return;
    }
    Frame frame = layer.getFrame();
    if (frame == this && containsLayer(layer)) {
      boolean removed = layers.remove(layer);
      if (removed) {
        layer.setParent(null);
      }
    }
  }
/**
   * Used to remove layer from frame.
   *
   * @param layer layer to remove.
   */
Used to remove layer from frame.
@param layer layer to remove.
Used to remove layer from frame . @param layer layer to remove .
public void removeLayer(Layer layer) {
    if (layer == null || layer == tooltipLayer || layer == componentLayer) {
      return;
    }
    Frame frame = layer.getFrame();
    if (frame == this && containsLayer(layer)) {
      boolean removed = layers.remove(layer);
      if (removed) {
        layer.setParent(null);
      }
    }
  }
public void removeLayer ( Layer layer ) { if ( layer == null || layer == tooltipLayer || layer == componentLayer ) { return ; } Frame frame = layer . getFrame ( ) ; if ( frame == this && containsLayer ( layer ) ) { boolean removed = layers . remove ( layer ) ; if ( removed ) { layer . setParent ( null ) ; } } }
Used to remove layer from frame.
Used to remove layer from frame .