Remove some unnecessary branches and unused functions

This commit is contained in:
Veronica K. B. Olsen
2020-12-12 19:22:38 +01:00
parent 585287b487
commit 27696d65e4
8 changed files with 18 additions and 26 deletions
+1 -2
View File
@@ -102,10 +102,9 @@ class GuiDocHighlighter(QSyntaxHighlighter):
self.colTrail = QColor(*self.theTheme.colEmph)
self.colTrail.setAlpha(64)
self.colEmph = None
if self.mainConf.highlightEmph:
self.colEmph = QColor(*self.theTheme.colEmph)
else:
self.colEmph = None
self.hStyles = {
"header1" : self._makeFormat(self.colHead, "bold", 1.8),