mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Cleanup of the TOC support code: remove unnecessary initializations.
This commit is contained in:
@@ -1610,7 +1610,6 @@ end
|
||||
|
||||
function UniReader:fillToc()
|
||||
InfoMessage:show("Retrieving TOC...", 1)
|
||||
self.toc_expandable = false
|
||||
self.toc = self.doc:getToc()
|
||||
self.toc_children = {}
|
||||
self.toc_xview = {}
|
||||
@@ -2145,7 +2144,6 @@ function UniReader:inputLoop()
|
||||
self.toc_xview = nil
|
||||
self.toc_cview = nil
|
||||
self.toc_curidx_to_x = nil
|
||||
self.toc_xidx_to_cur = nil
|
||||
if self.doc ~= nil then
|
||||
self.doc:close()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user