-
-
-
+
+
diff --git a/src/gui/handler.cpp b/src/gui/handler.cpp
index 7bf9e033..8d70d448 100644
--- a/src/gui/handler.cpp
+++ b/src/gui/handler.cpp
@@ -196,19 +196,7 @@ namespace loot {
CefRefPtr callback) {
const string requestName = request["name"].as();
- if (requestName == "find") {
- // Has one arg, which is the search string.
- try {
- Find(browser, request["args"][0].as(), request["args"][1].as());
- callback->Success("");
- }
- catch (std::exception& e) {
- BOOST_LOG_TRIVIAL(error) << "Failed to perform search. Details: " << e.what();
- callback->Failure(-1, string("Failed to perform search. Details: ") + e.what());
- }
- return true;
- }
- else if (requestName == "changeGame") {
+ if (requestName == "changeGame") {
try {
// Has one arg, which is the folder name of the new game.
g_app_state.ChangeGame(request["args"][0].as());
@@ -340,13 +328,6 @@ namespace loot {
return false;
}
- void Handler::Find(CefRefPtr browser, const std::string& search, bool findNext) {
- // Only one search at a time is allowed, so give a constant identifier,
- // and we want case-insensitive forward searching, with no repeated
- // searches.
- browser->GetHost()->Find(0, search, true, false, findNext);
- }
-
void Handler::GetConflictingPlugins(const std::string& pluginName, CefRefPtr frame, CefRefPtr callback) {
BOOST_LOG_TRIVIAL(debug) << "Searching for plugins that conflict with " << pluginName;
diff --git a/src/gui/handler.h b/src/gui/handler.h
index 60a3cccf..69d3fd7f 100644
--- a/src/gui/handler.h
+++ b/src/gui/handler.h
@@ -66,7 +66,6 @@ namespace loot {
YAML::Node& request,
CefRefPtr callback);
- void Find(CefRefPtr browser, const std::string& search, bool findNext);
void GetConflictingPlugins(const std::string& pluginName, CefRefPtr frame, CefRefPtr callback);
void CopyMetadata(const std::string& pluginName);
std::string ClearPluginMetadata(const std::string& pluginName);