[non-working]removed unused functions

This commit is contained in:
kikito 2009-11-03 09:04:11 +00:00
parent df19e255f9
commit e81eed41c9

View File

@ -4,23 +4,6 @@
-- Based on YaciCode, from Julien Patte and LuaObject, from Sébastien Rocca-Serra
-----------------------------------------------------------------------------------
do
local function getSuper(superclass, symbol)
return function(self, ...)
print(superclass.name .. '.' .. symbol)
return superclass[symbol](self, ...)
end
end
local function addSuper(superclass, symbol, method)
local fenv = getfenv(method)
fenv.super = getSuper(superclass, symbol)
--return setfenv(method, setmetatable(
-- {super = getSuper(superclass, symbol)},
-- {__index = fenv, __newindex = fenv}))
end
-- The 'Object' class
Object = {
name = "Object",
@ -111,5 +94,3 @@ function class(name, baseClass)
baseClass = baseClass or Object
return baseClass:subclass(name)
end
end