From 2390172c7ad0e6ff26114cd848d4737943128c05 Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Tue, 9 Jun 2015 17:10:36 +0300 Subject: [PATCH] Remove unused findZabbixItem() method. --- zabbix/datasource.js | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/zabbix/datasource.js b/zabbix/datasource.js index 78b01bf..b8055bc 100644 --- a/zabbix/datasource.js +++ b/zabbix/datasource.js @@ -414,28 +414,6 @@ function (angular, _, kbn) { }; - ZabbixAPIDatasource.prototype.findZabbixItem = function (hosts, itemnames, /* optional */ selectHosts) { - var self = this; - return this.findZabbixHost(hosts).then(function (hosts) { - var hostids = _.map(hosts, 'hostid'); - var params = { - output: ['name', 'key_', 'value_type'], - hostids: hostids, - searchWildcardsEnabled: true - }; - if (selectHosts) { - params.selectHosts = ['name']; - } - return self.performZabbixAPIRequest('item.get', params) - .then(function (items) { - return _.filter(items, function (item) { - return _.contains(itemnames, expandItemName(item)); - }); - }); - }); - }; - - /** * For templated query *