- Removes unused exception handlers
This commit is contained in:
@@ -3,9 +3,9 @@ namespace MailPoet\Config;
|
|||||||
|
|
||||||
use MailPoet\Cron\Daemon;
|
use MailPoet\Cron\Daemon;
|
||||||
use MailPoet\Newsletter\Viewer\ViewInBrowser;
|
use MailPoet\Newsletter\Viewer\ViewInBrowser;
|
||||||
|
use MailPoet\Statistics\Track\Clicks;
|
||||||
use MailPoet\Statistics\Track\Opens;
|
use MailPoet\Statistics\Track\Opens;
|
||||||
use MailPoet\Subscription;
|
use MailPoet\Subscription;
|
||||||
use MailPoet\Statistics\Track\Clicks;
|
|
||||||
use MailPoet\Util\Helpers;
|
use MailPoet\Util\Helpers;
|
||||||
|
|
||||||
if(!defined('ABSPATH')) exit;
|
if(!defined('ABSPATH')) exit;
|
||||||
@@ -36,19 +36,13 @@ class PublicAPI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function queue() {
|
function queue() {
|
||||||
try {
|
$queue = new Daemon($this->data);
|
||||||
$queue = new Daemon($this->data);
|
$this->_checkAndCallMethod($queue, $this->action);
|
||||||
$this->_checkAndCallMethod($queue, $this->action);
|
|
||||||
} catch(\Exception $e) {
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function subscription() {
|
function subscription() {
|
||||||
try {
|
$subscription = new Subscription\Pages($this->action, $this->data);
|
||||||
$subscription = new Subscription\Pages($this->action, $this->data);
|
$this->_checkAndCallMethod($subscription, $this->action);
|
||||||
$this->_checkAndCallMethod($subscription, $this->action);
|
|
||||||
} catch(\Exception $e) {
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function track() {
|
function track() {
|
||||||
|
Reference in New Issue
Block a user