diff --git a/lib/private/AppFramework/DependencyInjection/DIContainer.php b/lib/private/AppFramework/DependencyInjection/DIContainer.php index 5fe925c299..44c268bdea 100644 --- a/lib/private/AppFramework/DependencyInjection/DIContainer.php +++ b/lib/private/AppFramework/DependencyInjection/DIContainer.php @@ -152,10 +152,6 @@ class DIContainer extends SimpleContainer implements IAppContainer { return $c->query('ServerContainer')->getWebRoot(); }); - $this->registerService('fromMailAddress', function() { - return Util::getDefaultEmailAddress('no-reply'); - }); - $this->registerService('OC_Defaults', function ($c) { return $c->getServer()->getThemingDefaults(); }); diff --git a/settings/Controller/MailSettingsController.php b/settings/Controller/MailSettingsController.php index 22e2662a21..d1ceb14a63 100644 --- a/settings/Controller/MailSettingsController.php +++ b/settings/Controller/MailSettingsController.php @@ -47,8 +47,6 @@ class MailSettingsController extends Controller { private $userSession; /** @var IMailer */ private $mailer; - /** @var string */ - private $defaultMailAddress; /** * @param string $appName @@ -57,21 +55,18 @@ class MailSettingsController extends Controller { * @param IConfig $config * @param IUserSession $userSession * @param IMailer $mailer - * @param string $fromMailAddress */ public function __construct($appName, IRequest $request, IL10N $l10n, IConfig $config, IUserSession $userSession, - IMailer $mailer, - $fromMailAddress) { + IMailer $mailer) { parent::__construct($appName, $request); $this->l10n = $l10n; $this->config = $config; $this->userSession = $userSession; $this->mailer = $mailer; - $this->defaultMailAddress = $fromMailAddress; } /**