From 6b20c92be25602ff2c562067213082a29519fe46 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Wed, 4 Mar 2020 22:58:15 +0100 Subject: [PATCH] Remove mail settings backwards compatibility layer --- .../src/Api/Serializer/MailSettingsSerializer.php | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/framework/core/src/Api/Serializer/MailSettingsSerializer.php b/framework/core/src/Api/Serializer/MailSettingsSerializer.php index 4823bfa1c..20cf512fd 100644 --- a/framework/core/src/Api/Serializer/MailSettingsSerializer.php +++ b/framework/core/src/Api/Serializer/MailSettingsSerializer.php @@ -36,19 +36,7 @@ class MailSettingsSerializer extends AbstractSerializer private function serializeDriver(DriverInterface $driver) { - $settings = $driver->availableSettings(); - - if (key($settings) === 0) { - // BACKWARDS COMPATIBILITY: Support a simple list of fields (without - // type or additional metadata). - // Turns ["f1", "f2"] into {"f1": "", "f2": ""} - // @deprecated since 0.1.0-beta.12 - $settings = array_reduce($settings, function ($memo, $key) { - return [$key => ''] + $memo; - }, []); - } - - return $settings; + return $driver->availableSettings(); } public function getId($model)