Removed legacy code from transports (#10081)

This commit is contained in:
Neil Lathwood
2019-04-12 18:33:10 +01:00
committed by Tony Murray
parent c76115bf46
commit d31a551464
15 changed files with 0 additions and 179 deletions

View File

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