diff src/services/anilist.cc @ 228:d030b30526d5

config: remove unused username parameter from anilist auth
author Paper <mrpapersonic@gmail.com>
date Tue, 09 Jan 2024 08:05:36 -0500
parents 7cf53145de11
children c130f47f6f48
line wrap: on
line diff
--- a/src/services/anilist.cc	Mon Jan 08 21:30:18 2024 -0500
+++ b/src/services/anilist.cc	Tue Jan 09 08:05:36 2024 -0500
@@ -30,9 +30,6 @@
 
 class Account {
 	public:
-		std::string Username() const { return session.config.auth.anilist.username; }
-		void SetUsername(std::string const& username) { session.config.auth.anilist.username = username; }
-
 		int UserId() const { return session.config.auth.anilist.user_id; }
 		void SetUserId(const int id) { session.config.auth.anilist.user_id = id; }
 
@@ -300,7 +297,6 @@
 }
 
 int ParseUser(const nlohmann::json& json) {
-	account.SetUsername(JSON::GetString<std::string>(json, "/name"_json_pointer, ""));
 	account.SetUserId(JSON::GetNumber(json, "/id"_json_pointer, 0));
 	return account.UserId();
 }