Skip to content

Commit

Permalink
chore(classes): Drop unused return code handled by Penlight constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Jul 28, 2022
1 parent 4b44e01 commit 63e3a3e
Show file tree
Hide file tree
Showing 13 changed files with 2 additions and 13 deletions.
1 change: 0 additions & 1 deletion classes/base.lua
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ function class:_init (options)
end
end)
end)
return self
end

function class:_post_init ()
Expand Down
1 change: 0 additions & 1 deletion classes/bible.lua
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ function class:_init(options)
self_:singleColumnMaster()
end
end)
return self
end

function class:endPage ()
Expand Down
1 change: 0 additions & 1 deletion classes/book.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ function class:_init (options)
stealFrom = { "content" }
})
if not SILE.scratch.headers then SILE.scratch.headers = {} end
return self
end

function class:endPage ()
Expand Down
1 change: 0 additions & 1 deletion classes/diglot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ function class:_init (options)
self:declareFrame("b", { left = "52%pw", right = "100%pw-left(a)", top = "top(a)", bottom = "bottom(a)" })
self:declareFrame("folio",{ left = "left(a)", right = "right(b)", top = "bottom(a)+3%ph", bottom = "bottom(a)+8%ph" })
self:loadPackage("parallel", { frames = { left = "a", right = "b" } })
return self
end

return class
1 change: 0 additions & 1 deletion classes/docbook.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ function class:_init (options)
self:loadPackage("rules")
self:loadPackage("verbatim")
self:loadPackage("footnotes")
return self
end

function class.push (t, val)
Expand Down
1 change: 0 additions & 1 deletion classes/jbook.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ function class:_init (options)
SILE.languageSupport.loadLanguage("ja")
SILE.settings:set("document.language", "ja", true)
SILE.settings:set("font.family", "Noto Sans CJK JP", true)
return self
end

class.declareOptions = tbook.declareOptions
Expand Down
1 change: 0 additions & 1 deletion classes/jplain.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ function class:_init (options)
SILE.languageSupport.loadLanguage("ja")
SILE.settings:set("document.language", "ja", true)
SILE.settings:set("font.family", "Noto Sans CJK JP", true)
return self
end

return class
1 change: 0 additions & 1 deletion classes/letter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ function class:_init (options)
recipient = "",
salutation = ""
}
return self
end

function class:registerCommands ()
Expand Down
1 change: 0 additions & 1 deletion classes/markdown.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ function class:_init (options)
book._init(self, options)
self:loadPackage("url")
self:loadPackage("image")
return self
end

function class:registerCommands ()
Expand Down
1 change: 0 additions & 1 deletion classes/pecha.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ function class:_init(options)
SILE.settings:set("typesetter.parfillskip", SILE.nodefactory.glue())
SILE.settings:set("document.parindent", SILE.nodefactory.glue())
end)
return self
end

function class:endPage()
Expand Down
1 change: 0 additions & 1 deletion classes/plain.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ function class:_init (options)
base._init(self, options)
self:loadPackage("bidi")
self:loadPackage("folio")
return self
end

function class:declareOptions ()
Expand Down
3 changes: 2 additions & 1 deletion classes/tplain.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class.defaultFrameset.content = {
linecount = 30
}

-- The classes tplain and tbook inherit from plain and book respectively but also
-- have this bit in common; this makes it accessable
function class:_t_common ()
self:loadPackage("font-fallback")
self:loadPackage("hanmenkyoshi")
Expand All @@ -28,7 +30,6 @@ end
function class:_init (options)
plain._init(self, options)
class._t_common(self)
return self
end

function class:declareOptions ()
Expand Down
1 change: 0 additions & 1 deletion classes/triglot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ function class:_init (options)
self:loadPackage("parallel", { frames = { left = "a", middle = "b", right= "c" } })
SILE.settings:set("linebreak.tolerance", 5000)
SILE.settings:set("document.parindent", SILE.nodefactory.glue())
return self
end

return class

0 comments on commit 63e3a3e

Please sign in to comment.