CppTools: Remove assertions for CppModelManager::instance()

It cannot return null.

Change-Id: I3ac5f33e7e02554edc8df067c7b85518e58c1fc2
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
Orgad Shaneh
2015-02-15 23:13:28 +02:00
committed by Orgad Shaneh
parent a22dc36aaf
commit 831fb6181e
13 changed files with 41 additions and 77 deletions

View File

@@ -187,9 +187,6 @@ QWidget *CppEditorOutline::widget() const
void CppEditorOutline::updateNow()
{
CppTools::CppModelManager *cmmi = CppTools::CppModelManager::instance();
if (!cmmi)
return;
const CPlusPlus::Snapshot snapshot = cmmi->snapshot();
const QString filePath = m_editorWidget->textDocument()->filePath().toString();
CPlusPlus::Document::Ptr document = snapshot.document(filePath);