Skip to content

Commit

Permalink
Get rid of obsolete if_while_handler function
Browse files Browse the repository at this point in the history
  • Loading branch information
Elvish-Hunter committed Apr 3, 2014
1 parent cf55cf8 commit 7e4beb8
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions data/lua/wml-tags.lua
Expand Up @@ -329,16 +329,6 @@ end

wml_actions.command = handle_event_commands

local function if_while_handler(max_iter, pass, fail, cfg)
for i = 1, max_iter do
local t = wesnoth.eval_conditional(cfg) and pass or fail
if not t then return end
for v in helper.child_range(cfg, t) do
handle_event_commands(v)
end
end
end

-- since if and while are Lua keywords, we can't create functions with such names
-- instead, we store the following anonymous functions directly into
-- the table, using the [] operator, rather than by using the point syntax
Expand Down

0 comments on commit 7e4beb8

Please sign in to comment.