Skip to content

Commit

Permalink
Dropped deprecation warning regarding [object]duration=level
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Apr 2, 2015
1 parent f365418 commit 0f28f82
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/game_events/action_wml.cpp
Expand Up @@ -850,13 +850,6 @@ WML_HANDLER_FUNCTION(object, event_info, cfg)

if ( u != resources::units->end() && (!ufilt || ufilt->matches(*u)) )
{
///@deprecated This can be removed (and a proper duration=level implemented) after 1.11.2
/// Don't forget to remove it from wmllint too!
const std::string& duration = cfg["duration"];
if (duration == "level") {
lg::wml_error << "[object]duration=level is deprecated. Use duration=scenario instead.\n";
}

text = cfg["description"].str();

if(cfg["delayed_variable_substitution"].to_bool(false))
Expand Down

0 comments on commit 0f28f82

Please sign in to comment.