Removes a panel.

@param FacetPanel $panel
488620
public function removePanel(PanelFacet $panel)
    {
        //some reordering have to happen here...
        $panels = $this->panelRepo->findPanelsAfter($panel);

        foreach ($panels as $afterPanel) {
            $afterPanel->setPosition($afterPanel->getPosition() - 1);
            $this->om->persist($afterPanel);
        }

        $this->om->remove($panel);
        $this->om->flush();
        //reorder the fields for the still standing panels
        $panels = $this->panelRepo->findAll();

        foreach ($panels as $panel) {
            $this->reorderFields($panel);
        }
    }
852130
public function setPanel(FrenchFrogs\Panel\Panel\Panel $panel)
    {
        $this->panel = $panel;
        return $this;
    }
915778
public function removeActionPanelTask($panelKey)
    {
        if (array_key_exists($panelKey, $this->actionTasks)) {
            unset($this->actionTasks[$panelKey]);
        }
        return $this;
    }
244539
public function deleteComponentAction(Component $component)
    {
        execute(new RemoveComponentCommand($component));

        return cachet_redirect('dashboard.components')
            ->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.components.delete.success')));
    }
1075414
public function delete(FeatureAvDeleteEvent $event, $eventName, EventDispatcherInterface $dispatcher)
    {
        if (null !== ($feature = FeatureAvQuery::create()->findPk($event->getFeatureAvId()))) {
            $feature
                ->setDispatcher($dispatcher)
                ->delete()
            ;

            $event->setFeatureAv($feature);
        }
    }
892033
function () {
            Overlay.windowResizeEvent.unsubscribe(this.sizeMask, this);
            this.removeMask();
            if (this.close) {
                Event.purgeElement(this.close);
            }
            Panel.superclass.destroy.call(this);  
        }
1316409
public function removeLayout(Layout $layout)
    {
        if (null === $layout->getSite()) {
            return false;
        }

        $layoutfile = $this->getLayoutFile($layout);
        @unlink($layoutfile);
    }
1348132
def close_panel(self):
        
        self.hide()
        self.lineEditReplace.clear()
        self.lineEditSearch.clear()
961812
def remove(self, name_or_klass):
        
        _logger().log(5, 'removing panel %r', name_or_klass)
        panel = self.get(name_or_klass)
        panel.on_uninstall()
        panel.hide()
        panel.setParent(None)
        return self._panels[panel.position].pop(panel.name, None)
659610
public function removeFrame($offset)
    {
        if (!isset($this->frames[$offset])) {
            throw new \InvalidArgumentException('Offset does not exist.');
        }

        unset($this->frames[$offset]);

        return $this;
    }
306841
public function remove($element) {
        foreach ($this->elements as $index => $e) {
            if ($e === $element) {
                unset($this->elements[$index]);
                $this->fire(new SetRemoveEvent($element));
                return;
            }
        }
    }
1297023
public function removeMember(GroupMemberInterface $member)
    {
        if (!$this->hasMember($member)) {
            throw new \InvalidArgumentException('Trying to remove a member that is not in that group');
        }

        $this->members->removeElement($member);
    }
674450
public static function remove($index)
    {
        if (isset(self::$views[$index])) {
            self::$views[$index] = null;
        }
    }
1174007
public function delete(FeatureDeleteEvent $event, $eventName, EventDispatcherInterface $dispatcher)
    {
        if (null !== ($feature = FeatureQuery::create()->findPk($event->getFeatureId()))) {
            $feature
                ->setDispatcher($dispatcher)
                ->delete()
            ;

            $event->setFeature($feature);
        }
    }
586343
public function handleRemove(RemoveEvent $event)
    {
        $document = $event->getDocument();
        if (!$document instanceof ArticleDocument) {
            return;
        }

        $this->indexer->remove($document);
        $this->indexer->flush();
    }
15562
public function removeAllFacetValuesByName($facetName)
    {
        $facetValues = $this->getActiveFacets();
        $facetValues = array_filter($facetValues, function($facetValue) use ($facetName) {
            $parts = explode(':', $facetValue, 2);
            return $parts[0] !== $facetName;
        });

        $this->setActiveFacets($facetValues);
        $this->stateChanged = true;
        return $this;
    }
1339842
public function panelFacetFormAction(Facet $facet)
    {
        $form = $this->formFactory->create(new PanelFacetType(), new PanelFacet());

        return array('form' => $form->createView(), 'facet' => $facet);
    }