diff --git a/src/plugins/qmljseditor/qmlcodecompletion.cpp b/src/plugins/qmljseditor/qmlcodecompletion.cpp index 92a29f42093..6d1bb3f064f 100644 --- a/src/plugins/qmljseditor/qmlcodecompletion.cpp +++ b/src/plugins/qmljseditor/qmlcodecompletion.cpp @@ -64,7 +64,6 @@ using namespace QmlJSEditor::Internal; using namespace QmlJS; // #define QML_WITH_SNIPPETS -// #define QML_WITH_AUTO_COMPLETION namespace { @@ -578,7 +577,6 @@ bool QmlCodeCompletion::maybeTriggersCompletion(TextEditor::ITextEditable *edito if (ch == QLatin1Char('(') || ch == QLatin1Char('.')) return true; -#ifdef QML_WITH_AUTO_COMPLETION const QChar characterUnderCursor = editor->characterAt(cursorPosition); if (isIdentifierChar(ch) && (characterUnderCursor.isSpace() || @@ -600,7 +598,6 @@ bool QmlCodeCompletion::maybeTriggersCompletion(TextEditor::ITextEditable *edito return true; } } -#endif return false; }