git.iko.soy/typeable/pandoc
on master help sign in
data/pandoc.lua: remove dead code

A `Element:new` method was a left-over was never called. Change: minor

commit5942da4ff70ec47054032f334194c38e1c9e1c6d authorAlbert Krewinkel <albert@zeitkraut.de> dateSat 6 Jan 2018, 23:25 (9 years ago) parentf492f5a
1 file changed+2−6
data/pandoc.lua+2−6
data/pandoc.lua+2−6
@@ -127,12 +127,6 @@ function Element:create_constructor(tag, fn, accessors)
127127 return constr
128128end
129129
130−--- Calls the constructor, creating a new element.
131−-- @local
132−function Element.__call(t, ...)
133− return t:new(...)
134−end
135−
136130------------------------------------------------------------------------
137131--- Pandoc Document
138132-- @section document
@@ -229,6 +223,7 @@ end
229223-- @section Block
230224
231225--- Block elements
226+-- @type Block
232227M.Block = Element:make_subtype{}
233228M.Block.__call = function (t, ...)
234229 return t:new(...)
@@ -403,6 +398,7 @@ M.Table = M.Block:create_constructor(
403398-- @section Inline
404399
405400--- Inline element class
401+-- @type Inline
406402M.Inline = Element:make_subtype{}
407403M.Inline.__call = function (t, ...)
408404 return t:new(...)