From ebf9a784a9f7f4148a669dbb39e7cd50df779a14 Mon Sep 17 00:00:00 2001 From: James Rowe Date: Thu, 11 Jan 2018 19:21:20 -0700 Subject: Massive removal of unused modules --- src/web_service/verify_login.cpp | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 src/web_service/verify_login.cpp (limited to 'src/web_service/verify_login.cpp') diff --git a/src/web_service/verify_login.cpp b/src/web_service/verify_login.cpp deleted file mode 100644 index 1bc3b5afe..000000000 --- a/src/web_service/verify_login.cpp +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright 2017 Citra Emulator Project -// Licensed under GPLv2 or any later version -// Refer to the license.txt file included. - -#include -#include "web_service/verify_login.h" -#include "web_service/web_backend.h" - -namespace WebService { - -std::future VerifyLogin(std::string& username, std::string& token, - const std::string& endpoint_url, std::function func) { - auto get_func = [func, username](const std::string& reply) -> bool { - func(); - if (reply.empty()) - return false; - nlohmann::json json = nlohmann::json::parse(reply); - std::string result; - try { - result = json["username"]; - } catch (const nlohmann::detail::out_of_range&) { - } - return result == username; - }; - return GetJson(get_func, endpoint_url, false, username, token); -} - -} // namespace WebService -- cgit v1.2.3