forked from qt-creator/qt-creator
TextEditor: Remove dead code
Change-Id: Id2211d3f1f34a25ce2d9dc466fbac46850a70f1e Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
9bacb3e33e
commit
517dd9ae43
@@ -4522,16 +4522,9 @@ void TextEditorWidget::extraAreaPaintEvent(QPaintEvent *e)
|
||||
|
||||
int extraAreaHighlightFoldBlockNumber = -1;
|
||||
int extraAreaHighlightFoldEndBlockNumber = -1;
|
||||
bool endIsVisible = false;
|
||||
if (!d->m_highlightBlocksInfo.isEmpty()) {
|
||||
extraAreaHighlightFoldBlockNumber = d->m_highlightBlocksInfo.open.last();
|
||||
extraAreaHighlightFoldEndBlockNumber = d->m_highlightBlocksInfo.close.first();
|
||||
endIsVisible = doc->findBlockByNumber(extraAreaHighlightFoldEndBlockNumber).isVisible();
|
||||
|
||||
// QTextBlock before = doc->findBlockByNumber(extraAreaHighlightCollapseBlockNumber-1);
|
||||
// if (TextBlockUserData::hasCollapseAfter(before)) {
|
||||
// extraAreaHighlightCollapseBlockNumber--;
|
||||
// }
|
||||
}
|
||||
|
||||
TextBlockUserData *nextBlockUserData = TextDocumentLayout::testUserData(nextBlock);
|
||||
|
||||
Reference in New Issue
Block a user