Drop unused, non-secured method

refs #11
This commit is contained in:
Alexander A. Klimov 2017-09-20 18:14:10 +02:00
parent 59d6f7de54
commit def866f5cf

View file

@ -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();