From 5942da4ff70ec47054032f334194c38e1c9e1c6d Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Sat, 6 Jan 2018 23:25:08 +0100 Subject: data/pandoc.lua: remove dead code A `Element:new` method was a left-over was never called. Change: minor --- data/pandoc.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'data') 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(...) -- cgit v1.2.3