Skip to content

Commit

Permalink
Dropped support for finding theme by name
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Apr 2, 2015
1 parent 0f28f82 commit fefffa9
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/controller_base.cpp
Expand Up @@ -345,14 +345,6 @@ const config& controller_base::get_theme(const config& game_config, std::string
if (const config &c = game_config.find_child("theme", "id", theme_name))
return c;

// Themes created for version 1.11.9 and earlier use name= for
// untranslatable ids.
// TODO: remove support for this in 1.13.x (1.13.2?).
if (const config &c = game_config.find_child("theme", "name", theme_name)) {
ERR_DP << "Theme '" << theme_name << "' uses [theme] name= instead of id= to specify its id; this usage is deprecated and will be removed in version 1.13.x." << std::endl;
return c;
}

ERR_DP << "Theme '" << theme_name << "' not found. Trying the default theme." << std::endl;

if (const config &c = game_config.find_child("theme", "id", "Default"))
Expand Down

0 comments on commit fefffa9

Please sign in to comment.