diff --git a/src/plugins/cpptools/cppfindreferences.cpp b/src/plugins/cpptools/cppfindreferences.cpp
index bf01f13fad8559911aec5314ed173debc7298ed5..60efaf7784ad8d773dc0c053261b2afb80330a6b 100644
--- a/src/plugins/cpptools/cppfindreferences.cpp
+++ b/src/plugins/cpptools/cppfindreferences.cpp
@@ -259,37 +259,6 @@ void CppFindReferences::findAll_helper(Symbol *symbol)
     connect(progress, SIGNAL(clicked()), _resultWindow, SLOT(popup()));
 }
 
-static void applyChanges(QTextDocument *doc, const QString &text, const QList<Find::SearchResultItem> &items)
-{
-    QList<QTextCursor> cursors;
-
-    foreach (const Find::SearchResultItem &item, items) {
-        const int blockNumber = item.lineNumber - 1;
-        QTextCursor tc(doc->findBlockByNumber(blockNumber));
-
-        const int cursorPosition = tc.position() + item.searchTermStart;
-
-        int cursorIndex = 0;
-        for (; cursorIndex < cursors.size(); ++cursorIndex) {
-            const QTextCursor &tc = cursors.at(cursorIndex);
-
-            if (tc.position() == cursorPosition)
-                break;
-        }
-
-        if (cursorIndex != cursors.size())
-            continue; // skip this change.
-
-        tc.setPosition(cursorPosition);
-        tc.setPosition(tc.position() + item.searchTermLength,
-                       QTextCursor::KeepAnchor);
-        cursors.append(tc);
-    }
-
-    foreach (QTextCursor tc, cursors)
-        tc.insertText(text);
-}
-
 void CppFindReferences::onReplaceButtonClicked(const QString &text,
                                                const QList<Find::SearchResultItem> &items)
 {