Removed support for the deprecated text element systemdata property values gamecount_games and gamecount_favorites.

This commit is contained in:
Leon Styhre 2023-01-29 12:44:24 +01:00
parent b617cc0f3b
commit 0fdb0500fe

View file

@ -439,19 +439,7 @@ void TextComponent::applyTheme(const std::shared_ptr<ThemeData>& theme,
if (properties & METADATA && elem->has("systemdata")) { if (properties & METADATA && elem->has("systemdata")) {
mThemeSystemdata = ""; mThemeSystemdata = "";
std::string systemdata {elem->get<std::string>("systemdata")}; const std::string& systemdata {elem->get<std::string>("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";
}
for (auto& type : supportedSystemdataTypes) { for (auto& type : supportedSystemdataTypes) {
if (type == systemdata) { if (type == systemdata) {