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

@@ -43,26 +43,12 @@ class Pushover extends Transport
{
public function deliverAlert($obj, $opts)
{
if (empty($this->config)) {
return $this->deliverAlertOld($obj, $opts);
}
$pushover_opts = $this->config;
$pushover_opts['options'] = $this->parseUserOptions($this->config['options']);
return $this->contactPushover($obj, $pushover_opts);
}
public function deliverAlertOld($obj, $opts)
{
foreach ($opts as $api) {
$response = $this->contactPushover($obj, $api);
if ($response !== true) {
return $response;
}
}
return true;
}
public function contactPushover($obj, $api)
{
$data = array();