mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Removed legacy code from transports (#10081)
This commit is contained in:
committed by
Tony Murray
parent
c76115bf46
commit
d31a551464
@@ -29,9 +29,6 @@ class Hipchat extends Transport
|
||||
{
|
||||
public function deliverAlert($obj, $opts)
|
||||
{
|
||||
if (empty($this->config)) {
|
||||
return $this->deliverAlertOld($obj, $opts);
|
||||
}
|
||||
$hipchat_opts = $this->parseUserOptions($this->config['hipchat-options']);
|
||||
$hipchat_opts['url'] = $this->config['hipchat-url'];
|
||||
$hipchat_opts['room_id'] = $this->config['hipchat-room-id'];
|
||||
@@ -40,15 +37,6 @@ class Hipchat extends Transport
|
||||
return $this->contactHipchat($obj, $hipchat_opts);
|
||||
}
|
||||
|
||||
public function deliverAlertOld($obj, $opts)
|
||||
{
|
||||
// loop through each room
|
||||
foreach ($opts as $option) {
|
||||
$this->contactHipchat($obj, $option);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public function contactHipchat($obj, $option)
|
||||
{
|
||||
$version = 1;
|
||||
|
Reference in New Issue
Block a user