mirror of
https://github.com/kikito/middleclass.git
synced 2024-11-25 02:44:20 +00:00
[non-working]removed unused functions
This commit is contained in:
parent
df19e255f9
commit
e81eed41c9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user