removing debug conditionals
@@ -1446,7 +1446,6 @@ class TextBuffer(BackingTextBuffer):
if 0:
for i in range(rows):
window.addStr(i, 0, '?' * cols, curses.color_pair(120))
-
if 0:
self.drawTextArea(window, 0, 0, rows, cols, 0)
elif 1:
@@ -1463,7 +1462,6 @@ class TextBuffer(BackingTextBuffer):
self.drawTextArea(window, splitRow, 0, rows - splitRow, splitCol, 192)
self.drawTextArea(window, splitRow, splitCol, rows - splitRow,
cols-splitCol, 0)
- if 1:
# Blank screen past the end of the buffer.
color = curses.color_pair(app.prefs.outsideOfBufferColorIndex)
endOfText = min(max(len(self.lines) - self.view.scrollRow, 0), rows)
@@ -1556,7 +1554,6 @@ class TextBuffer(BackingTextBuffer):
self.drawOverlays(window, top, left, rows, cols, colorDelta)
def drawOverlays(self, window, top, left, maxRow, maxCol, colorDelta):
- if 1:
startRow = self.view.scrollRow + top
endRow = self.view.scrollRow + top + maxRow
startCol = self.view.scrollCol + left
