diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-06-04 12:37:26 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-06-04 12:37:26 +0200 |
commit | 424b9724d6dc4f860cfb8da17d51a715684ad94c (patch) | |
tree | 921120642920dd72762ebeef6919181130ccf4f7 /src/plugins/cpptools/cpptoolseditorsupport.cpp | |
parent | 5f749306f11dbfd31a6f740ab9b1cb108476e202 (diff) | |
download | qt-creator-424b9724d6dc4f860cfb8da17d51a715684ad94c.tar.gz |
Revert "Introduced a token cache for the C++ editor."
This reverts commit c2393df02332618c8cf6159d9d6f6a40041ced89.
Diffstat (limited to 'src/plugins/cpptools/cpptoolseditorsupport.cpp')
-rw-r--r-- | src/plugins/cpptools/cpptoolseditorsupport.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/plugins/cpptools/cpptoolseditorsupport.cpp b/src/plugins/cpptools/cpptoolseditorsupport.cpp index 33eed4e020..77cccf1018 100644 --- a/src/plugins/cpptools/cpptoolseditorsupport.cpp +++ b/src/plugins/cpptools/cpptoolseditorsupport.cpp @@ -67,12 +67,8 @@ void CppEditorSupport::setTextEditor(TextEditor::ITextEditor *textEditor) { _textEditor = textEditor; - if (_textEditor) { - if (TextEditor::BaseTextEditor *ed = qobject_cast<TextEditor::BaseTextEditor *>(_textEditor->widget())) - _tokenCache.setDocument(ed->document()); - } else { + if (! _textEditor) return; - } connect(_textEditor, SIGNAL(contentsChanged()), this, SIGNAL(contentsChanged())); connect(this, SIGNAL(contentsChanged()), this, SLOT(updateDocument())); @@ -100,11 +96,6 @@ unsigned CppEditorSupport::editorRevision() const return 0; } -TokenCache *CppEditorSupport::tokenCache() -{ - return &_tokenCache; -} - int CppEditorSupport::updateDocumentInterval() const { return _updateDocumentInterval; } |