diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-06-29 17:47:59 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-07-02 11:18:51 +0200 |
commit | e3e8b1a5c01ddc230772ee0553ca325704295312 (patch) | |
tree | 9b0ce1ec310800cb6a4816b7a31269e63093aa5f /src/plugins/cpptools/cpptoolseditorsupport.cpp | |
parent | bb8aed629f9e48f4a47a6acaae0cd5a80c7e2291 (diff) | |
download | qt-creator-e3e8b1a5c01ddc230772ee0553ca325704295312.tar.gz |
Removed the TokenCache.
Diffstat (limited to 'src/plugins/cpptools/cpptoolseditorsupport.cpp')
-rw-r--r-- | src/plugins/cpptools/cpptoolseditorsupport.cpp | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/src/plugins/cpptools/cpptoolseditorsupport.cpp b/src/plugins/cpptools/cpptoolseditorsupport.cpp index 33eed4e020..4a775ee62e 100644 --- a/src/plugins/cpptools/cpptoolseditorsupport.cpp +++ b/src/plugins/cpptools/cpptoolseditorsupport.cpp @@ -68,16 +68,11 @@ 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 { - return; - } - - connect(_textEditor, SIGNAL(contentsChanged()), this, SIGNAL(contentsChanged())); - connect(this, SIGNAL(contentsChanged()), this, SLOT(updateDocument())); + connect(_textEditor, SIGNAL(contentsChanged()), this, SIGNAL(contentsChanged())); + connect(this, SIGNAL(contentsChanged()), this, SLOT(updateDocument())); - updateDocument(); + updateDocument(); + } } QString CppEditorSupport::contents() @@ -100,11 +95,6 @@ unsigned CppEditorSupport::editorRevision() const return 0; } -TokenCache *CppEditorSupport::tokenCache() -{ - return &_tokenCache; -} - int CppEditorSupport::updateDocumentInterval() const { return _updateDocumentInterval; } |