Detach from grid view.
506083
@Override
    public void onDestroyView() {
        mHandler.removeCallbacks(mRequestFocus);
        mGridView = null;
        mGridShown = false;
        mEmptyView = mProgressContainer = mGridContainer = null;
        mStandardEmptyView = null;
        super.onDestroyView();
    }
193229
def remove_unused_grid_rc(self):
        """"""

        if 'columns' in self['layout']:
            ckeys = tuple(self['layout']['columns'].keys())
            for key in ckeys:
                value = int(key)
                if value > self.max_col:
                    del self['layout']['columns'][key]
        if 'rows' in self['layout']:
            rkeys = tuple(self['layout']['rows'].keys())
            for key in rkeys:
                value = int(key)
                if value > self.max_row:
                    del self['layout']['rows'][key]
1193976
function(root, force) {
    // Shift arguments around.
    if (typeof root === "boolean") {
      force = root;
      root = this;
    }

    // Allow removeView to be called on instances.
    root = root || this;

    // Iterate over all of the nested View's and remove.
    root.getViews().each(function(view) {
      // Force doesn't care about if a View has rendered or not.
      if (view.hasRendered || force) {
        LayoutManager._removeView(view, force);
      }

    // call value() in case this chain is evaluated lazily
    }).value();
  }
1263248
function detachProfiling( scope ) {
   delete axProfiling.items[ scope.$id ];
   Object.keys( axProfiling.widgetIdToScopeId ).forEach( widgetId => {
      if( axProfiling.widgetIdToScopeId[ widgetId ] === scope.$id ) {
         delete axProfiling.widgetIdToScopeId[ widgetId ];
      }
   } );
}
950263
public <T> T detach(Class<T> clazz, Object id) {
        pm.getFetchPlan().setDetachmentOptions(FetchPlan.DETACH_LOAD_FIELDS);
        return pm.detachCopy(pm.getObjectById(clazz, id));
    }
548595
def detach(self, filt, view=None):
        
        for v in self._subvisuals:
            v.detach(filt, v)
319243
def clear(self):
        """"""

        for ax in self.flat_grid:
            for im_h in ax.findobj(AxesImage):
                im_h.remove()
1184840
public function detach()
    {
        $data = $this->result->getData($this->id);
        $this->result = Result::createDetachedInstance();
        foreach ($data as $key => $value) {
            $this->result->setDataEntry(Result::DETACHED_ROW_ID, $key, $value);
        }
        $this->id = Result::DETACHED_ROW_ID;
    }
446858
function(view){

    // shut down the child view properly,
    // including events that the collection has from it
    if (view){
      this.stopListening(view);

      // call 'close' or 'remove', depending on which is found
      if (view.close) { view.close(); }
      else if (view.remove) { view.remove(); }

      this.children.remove(view);
    }

    this.triggerMethod("item:removed", view);
  }
188429
def clear(self):
        
        self.grid = [[EMPTY for dummy_col in range(self.grid_width)] for dummy_row in range(self.grid_height)]
1234954
public void detach(Object ob)
    {
        Iterator<Map.Entry<String, List<InstanceMethod>>> ki = map.entrySet().iterator();
        while (ki.hasNext())
        {
            Map.Entry<String, List<InstanceMethod>> entry = ki.next();
            Iterator<InstanceMethod> li = entry.getValue().iterator();
            while (li.hasNext())
            {
                InstanceMethod im = li.next();
                if (im.instance.equals(ob))
                {
                    li.remove();
                }
            }
            if (entry.getValue().isEmpty())
            {
                ki.remove();
            }
        }
    }
276426
protected void detach()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "detach");

    // Cleanly dispose of the getCursor
    getCursor.finished();
    
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "detach");
  }
717329
private void removeRow(VerticalLayout layout, CmsResourceTypeStatResult result) {

        Component componentToRemove = null;
        Iterator<Component> iterator = layout.iterator();
        while (iterator.hasNext()) {
            Component component = iterator.next();
            if (component instanceof HorizontalLayout) {
                if (result.equals(((HorizontalLayout)component).getData())) {
                    componentToRemove = component;
                }
            }
        }
        if (componentToRemove != null) {
            layout.removeComponent(componentToRemove);
        }
    }
367545
public void detachAgent(Object pVm) {
        try {
            if (pVm != null) {
                Class clazz = pVm.getClass();
                Method method = clazz.getMethod("detach");
                method.setAccessible(true); // on J9 you get IllegalAccessException otherwise.
                method.invoke(pVm);
            }
        } catch (InvocationTargetException e) {
            throw new ProcessingException("Error while detaching",e, options);
        } catch (NoSuchMethodException e) {
            throw new ProcessingException("Error while detaching",e, options);
        } catch (IllegalAccessException e) {
            throw new ProcessingException("Error while detaching",e, options);
        }
    }
1067310
public void unbind() {
        if (itemView == null || controller == null) {
            return;
        }
        if (data != null) {
            this.controller.unmountView(data, itemView);
        }
    }
529908
def _reatach(self):
        """"""
        for item, p, idx in self._detached:
            # The item may have been deleted.
            if self.treeview.exists(item) and self.treeview.exists(p):
                self.treeview.move(item, p, idx)
        self._detached = []
508915
public static void doLogicalDetachFromHtmlPanel(Widget w) {
    Widget parent = w.getParent();

    if (parent instanceof HTMLPanel) {
      complexPanelGetChildren((HTMLPanel) parent).remove(w);
      widgetSetParent(w, null);
    } else {
      throw new IllegalStateException(
          "You can only use this method to detach a child from an HTMLPanel");
    }
  }