Check for unused privates

[MAILPOET-2090]
This commit is contained in:
Pavel Dohnal
2019-05-20 13:41:47 +02:00
committed by M. Shull
parent 9c64537761
commit 9f16cb6a5f
13 changed files with 32 additions and 34 deletions

View File

@@ -19,18 +19,14 @@ class NewSubscriberNotificationMailer {
/** @var \MailPoet\Mailer\Mailer|null */
private $mailer;
/** @var Functions */
private $wordpress_functions;
/** @var SettingsController */
private $settings;
/**
* @param \MailPoet\Mailer\Mailer|null $mailer
* @param Renderer|null $renderer
* @param Functions|null $wordpress_functions
*/
function __construct($mailer = null, $renderer = null, $wordpress_functions = null) {
function __construct($mailer = null, $renderer = null) {
if ($renderer) {
$this->renderer = $renderer;
} else {
@@ -38,11 +34,6 @@ class NewSubscriberNotificationMailer {
$debugging = WP_DEBUG;
$this->renderer = new Renderer($caching, $debugging);
}
if ($wordpress_functions) {
$this->wordpress_functions = $wordpress_functions;
} else {
$this->wordpress_functions = new Functions();
}
$this->mailer = $mailer;
$this->settings = new SettingsController();
}