From e052bda7685ecb9cdca9bfd71a020a34cbd7c160 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Fri, 23 Oct 2015 11:56:35 +0200 Subject: [PATCH] Remove remaining hunspell code --- src/lib/webengine/webview.cpp | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/lib/webengine/webview.cpp b/src/lib/webengine/webview.cpp index b384a2214..79d60c4eb 100644 --- a/src/lib/webengine/webview.cpp +++ b/src/lib/webengine/webview.cpp @@ -36,10 +36,6 @@ #include "webhittestresult.h" #include "iconloader.h" -#ifdef USE_HUNSPELL -#include "qtwebkit/spellcheck/speller.h" -#endif - #include #include @@ -609,14 +605,6 @@ void WebView::createContextMenu(QMenu *menu, const WebHitTestResult &hitTest) // cppcheck-suppress variableScope int spellCheckActionCount = 0; -#ifdef USE_HUNSPELL - // Show spellcheck menu as the first - if (hitTest.isContentEditable() && !hitTest.isContentSelected()) { - Speller::instance()->populateContextMenu(menu, hitTest); - spellCheckActionCount = menu->actions().count(); - } -#endif - if (!hitTest.linkUrl().isEmpty() && hitTest.linkUrl().scheme() != QL1S("javascript")) { createLinkContextMenu(menu, hitTest); } @@ -645,10 +633,6 @@ void WebView::createContextMenu(QMenu *menu, const WebHitTestResult &hitTest) act->setVisible(false); checkForForm(act, hitTest.pos()); } - -#ifdef USE_HUNSPELL - Speller::instance()->createContextMenu(menu); -#endif } if (!selectedText().isEmpty()) {