From b617cc0f3b740675098a5c9321a99c6b973cbc84 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 29 Jan 2023 12:41:54 +0100 Subject: [PATCH] Removed support for the deprecated carousel type values horizontal_wheel and vertical_wheel. --- .../src/components/primary/CarouselComponent.h | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/es-core/src/components/primary/CarouselComponent.h b/es-core/src/components/primary/CarouselComponent.h index 266ed9931..64d07657e 100644 --- a/es-core/src/components/primary/CarouselComponent.h +++ b/es-core/src/components/primary/CarouselComponent.h @@ -1141,23 +1141,10 @@ void CarouselComponent::applyTheme(const std::shared_ptr& theme, if (elem->has("type")) { std::string type {elem->get("type")}; - if (type == "horizontal_wheel") { + if (mLegacyMode && type == "horizontal_wheel") type = "horizontalWheel"; - if (!mLegacyMode) { - LOG(LogWarning) - << "CarouselComponent: Property value \"horizontal_wheel\" has been " - "deprecated and will be removed in a future release, use " - "\"horizontalWheel\" instead"; - } - } - else if (type == "vertical_wheel") { + else if (mLegacyMode && type == "vertical_wheel") type = "verticalWheel"; - if (!mLegacyMode) { - LOG(LogWarning) << "CarouselComponent: Property value \"vertical_wheel\" has been " - "deprecated and will be removed in a future release, use " - "\"verticalWheel\" instead"; - } - } if (type == "horizontal") { mType = CarouselType::HORIZONTAL;