From bd3c42cd26a1dfc4bff70dc55bc40a2030ab4ccc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Jakes=CC=8C?= Date: Thu, 24 Oct 2019 09:16:48 +0200 Subject: [PATCH] Remove deprecated method [MAILPOET-2436] --- lib/Models/Setting.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/Models/Setting.php b/lib/Models/Setting.php index e143f7e4b4..9a696c6610 100644 --- a/lib/Models/Setting.php +++ b/lib/Models/Setting.php @@ -25,16 +25,6 @@ class Setting extends Model { ]); } - /** - * This method is here only for BC fix of 3rd party plugin hacky integration - * @deprecated - */ - public static function getValue($key, $default = null) { - trigger_error('Calling Settings::getValue() is deprecated and will be removed. Use \MailPoet\Settings\SettingsController instead.', E_USER_DEPRECATED); - $settings = new SettingsController(); - return $settings->get($key, $default); - } - public static function getAll() { $settingsCollection = self::findMany(); $settings = [];