From 0fdb0500fe7e3c8599326a277ecc4766ed7b797b Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 29 Jan 2023 12:44:24 +0100 Subject: [PATCH] Removed support for the deprecated text element systemdata property values gamecount_games and gamecount_favorites. --- es-core/src/components/TextComponent.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/es-core/src/components/TextComponent.cpp b/es-core/src/components/TextComponent.cpp index 03d98e9af..affcd4840 100644 --- a/es-core/src/components/TextComponent.cpp +++ b/es-core/src/components/TextComponent.cpp @@ -439,19 +439,7 @@ void TextComponent::applyTheme(const std::shared_ptr& theme, if (properties & METADATA && elem->has("systemdata")) { mThemeSystemdata = ""; - std::string systemdata {elem->get("systemdata")}; - if (systemdata == "gamecount_games") { - systemdata = "gamecountGames"; - LOG(LogWarning) << "TextComponent: Property value \"gamecount_games\" has been " - "deprecated and will be removed in a future release, use " - "\"gamecountGames\" instead"; - } - else if (systemdata == "gamecount_favorites") { - systemdata = "gamecountFavorites"; - LOG(LogWarning) << "TextComponent: Property value \"gamecount_favorites\" has been " - "deprecated and will be removed in a future release, use " - "\"gamecountFavorites\" instead"; - } + const std::string& systemdata {elem->get("systemdata")}; for (auto& type : supportedSystemdataTypes) { if (type == systemdata) {