diff --git a/src/plugins/cpptools/cppmodelmanager.cpp b/src/plugins/cpptools/cppmodelmanager.cpp index b2b9c3ee096042a96dfd0a5a796f82e8287474c4..00db6d0640dd0e4fd68b12656cae89deacbca552 100644 --- a/src/plugins/cpptools/cppmodelmanager.cpp +++ b/src/plugins/cpptools/cppmodelmanager.cpp @@ -717,8 +717,6 @@ void CppModelManager::onDocumentUpdated(Document::Ptr doc) continue; else if (lines.contains(m.line())) continue; - //else if (lines.size() == MAX_SELECTION_COUNT) - //break; // we're done. lines.insert(m.line()); diff --git a/src/plugins/cpptools/cppmodelmanager.h b/src/plugins/cpptools/cppmodelmanager.h index 4713c29d61bb436132da7c080eb46cbac4ca1af3..fb645ffe8f3c4502ed508c529971535c7e626c89 100644 --- a/src/plugins/cpptools/cppmodelmanager.h +++ b/src/plugins/cpptools/cppmodelmanager.h @@ -168,10 +168,6 @@ private: mutable QMutex mutex; - enum { - MAX_SELECTION_COUNT = 5 - }; - struct Editor { QPointer<TextEditor::BaseTextEditor> widget; QList<QTextEdit::ExtraSelection> selections; diff --git a/src/plugins/cpptools/cpptoolseditorsupport.cpp b/src/plugins/cpptools/cpptoolseditorsupport.cpp index ab6fe3532ccfe2fa3e10c6d259a77b61031ee72d..a1688e7ca09d929e038e92fc3f29c9b9438febc8 100644 --- a/src/plugins/cpptools/cpptoolseditorsupport.cpp +++ b/src/plugins/cpptools/cpptoolseditorsupport.cpp @@ -91,10 +91,6 @@ void CppEditorSupport::updateDocument() const QList<QTextEdit::ExtraSelection> selections = edit->extraSelections(TextEditor::BaseTextEditor::CodeWarningsSelection); - if (! selections.isEmpty()) - edit->setExtraSelections(TextEditor::BaseTextEditor::CodeWarningsSelection, - QList<QTextEdit::ExtraSelection>()); - _modelManager->stopEditorSelectionsUpdate(); }