data/pandoc.lua: remove dead code

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

Change: minor
This commit is contained in:
Albert Krewinkel 2018-01-06 23:25:08 +01:00
parent f492f5a6dd
commit 5942da4ff7
No known key found for this signature in database
GPG key ID: 388DC0B21F631124

View file

@ -127,12 +127,6 @@ function Element:create_constructor(tag, fn, accessors)
return constr
end
--- Calls the constructor, creating a new element.
-- @local
function Element.__call(t, ...)
return t:new(...)
end
------------------------------------------------------------------------
--- Pandoc Document
-- @section document
@ -229,6 +223,7 @@ end
-- @section Block
--- Block elements
-- @type Block
M.Block = Element:make_subtype{}
M.Block.__call = function (t, ...)
return t:new(...)
@ -403,6 +398,7 @@ M.Table = M.Block:create_constructor(
-- @section Inline
--- Inline element class
-- @type Inline
M.Inline = Element:make_subtype{}
M.Inline.__call = function (t, ...)
return t:new(...)