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;