Removed package emulation.

This commit is contained in:
Guillaume Melquiond 2009-09-27 11:44:28 +00:00
parent d929a1d290
commit 29d9afb566
2 changed files with 1 additions and 13 deletions

View file

@ -1,16 +1,4 @@
-- Ensure the package is shared between all its users.
-- TODO: consider using the "package" module instead, if this code structure gets common.
if wesnoth.package then
local helper = wesnoth.package.helper
if helper then
return helper
end
else
wesnoth.package = {}
end
local helper = {}
wesnoth.package.helper = helper
--! Interrupts the current execution and displays a chat message that looks like a WML error.
function helper.wml_error(m)

View file

@ -1,4 +1,4 @@
local helper = wesnoth.dofile "lua/helper.lua"
local helper = wesnoth.require "lua/helper.lua"
local function trim(s)
local r = string.gsub(s, "^%s*(.-)%s*$", "%1")