diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2018-01-06 23:25:08 +0100 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2018-01-06 23:25:08 +0100 |
commit | 5942da4ff70ec47054032f334194c38e1c9e1c6d (patch) | |
tree | b6fa4e6b8835bb9d6bd549b2a60c7aae2f9f5d54 /data | |
parent | f492f5a6dd991530241529d1110e73260d3a1d43 (diff) | |
download | pandoc-5942da4ff70ec47054032f334194c38e1c9e1c6d.tar.gz |
data/pandoc.lua: remove dead code
A `Element:new` method was a left-over was never called.
Change: minor
Diffstat (limited to 'data')
-rw-r--r-- | data/pandoc.lua | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/data/pandoc.lua b/data/pandoc.lua index d96d5e702..68fd16fd4 100644 --- a/data/pandoc.lua +++ b/data/pandoc.lua @@ -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(...) |