Skip to content

Commit b641259

Browse files
committed
Clean some unnecessary lines of code and remove the hook_init() for now.
1 parent 1530155 commit b641259

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

elasticsearch_connector.module

-8
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@ define('ELASTICSEARCH_CONNECTOR_STATUS_INACTIVE', '0');
1111
define('ELASTICSEARCH_CONNECTOR_STATUS_ACTIVE', '1');
1212
define('ELASTICSEARCH_CONNECTOR_CLUSTER_STATUS_OK', '200');
1313

14-
/**
15-
* Implements hook_init().
16-
*/
17-
function elasticsearch_connector_init() {
18-
19-
}
20-
2114
/**
2215
* Implements hook_help().
2316
*/
@@ -421,7 +414,6 @@ function elasticsearch_connector_get_cluster_info($cluster) {
421414
$result['client'] = $client;
422415
$result['info'] = $result['state'] = $result['health'] = $result['stats'] = array();
423416
if (elasticsearch_connector_check_status($info)) {
424-
//$client = new \Elasticsearch\Client();
425417
$result['info'] = $info;
426418
$result['state'] = $client->cluster()->state();
427419
$result['health'] = $client->cluster()->health();

0 commit comments

Comments
 (0)