diff --git a/nw/core/tokenizer.py b/nw/core/tokenizer.py index 8a14f0eb..eb6b98d8 100644 --- a/nw/core/tokenizer.py +++ b/nw/core/tokenizer.py @@ -122,32 +122,6 @@ class Tokenizer(): return - def clearData(self): - """Clear the data arrays and variables, but not settings, so the class - can be reused for multiple documents. - """ - self.theText = None - self.theHandle = None - self.theItem = None - self.theTokens = None - self.theResult = None - self.theMarkdown = None - self.numChapter = 0 - self.firstScene = False - - self.isNone = False - self.isTitle = False - self.isBook = False - self.isPage = False - self.isPart = False - self.isUnNum = False - self.isChap = False - self.isScene = False - self.isNote = False - self.isNovel = False - - return - ## # Setters ## diff --git a/nw/gui/docmerge.py b/nw/gui/docmerge.py index 09b18b4b..8df427c6 100644 --- a/nw/gui/docmerge.py +++ b/nw/gui/docmerge.py @@ -136,14 +136,13 @@ class GuiDocMerge(QDialog): self.theParent.treeView.revealTreeItem(nHandle) self.theParent.openDocument(nHandle, doScroll=True) - self.close() + self._doClose() return def _doClose(self): """Close the dialog window without doing anything. """ - logger.verbose("GuiDocMerge close button clicked") self.close() return diff --git a/nw/gui/docsplit.py b/nw/gui/docsplit.py index c7fc5300..802419b8 100644 --- a/nw/gui/docsplit.py +++ b/nw/gui/docsplit.py @@ -214,14 +214,13 @@ class GuiDocSplit(QDialog): theDoc.clearDocument() self.theParent.treeView.revealTreeItem(nHandle) - self.close() + self._doClose() return def _doClose(self): """Close the dialog window without doing anything. """ - logger.verbose("GuiDocSplit close button clicked") self.optState.saveSettings() self.close() return