From def866f5cffdaaaecc057f7bf66cc4782b16bf1e Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Wed, 20 Sep 2017 18:14:10 +0200 Subject: [PATCH] Drop unused, non-secured method refs #11 --- application/controllers/ShowController.php | 48 ---------------------- 1 file changed, 48 deletions(-) diff --git a/application/controllers/ShowController.php b/application/controllers/ShowController.php index 61010d6..efdfdc2 100644 --- a/application/controllers/ShowController.php +++ b/application/controllers/ShowController.php @@ -73,54 +73,6 @@ class ShowController extends Controller exit; } - public function XXXserviceAction() - { - $this->handleDatasourceToggles(); - $this->handleGraphParams(); - $hostname = $this->view->hostname = $this->params->get('host'); - $service = $this->view->service = $this->params->get('service'); - if (! $hostname) { - throw new NotFoundError('Host is required'); - } - if (! $service) { - throw new NotFoundError('Service is required'); - } - $this->getTabs()->add('service', array( - 'label' => $this->translate('Graphite - Single service'), - 'url' => $this->getRequest()->getUrl() - ))->activate('service'); - - $imgs = array(); - $this->view->templates = array(); - - foreach ($this->templateStore->loadTemplateSets() as $setname => $set) { - - $patterns = $set->getBasePatterns(); - if (! array_key_exists('icingaService', $patterns)) continue; - - foreach ($set->loadTemplates() as $key => $template) { - - if (strpos($template->getFilterString(), '$service') === false) continue; - - $this->view->templates[$key] = $template; - - $imgs[$key] = $this->graphiteWeb - ->select() - ->from($template->getFilterString()) - ->where('hostname', $hostname) - ->where('service', $service) - ->getImages($template); - - foreach ($imgs[$key] as $img) { - $this->applyGraphParams($img) - ->showLegend(! $this->params->get('hideLegend', false)); - } - } - } - - $this->view->images = $imgs; - } - protected function loadTemplate() { $this->handleTemplateParams();