diff src/services/anilist.cc @ 231:69f4768a820c

chore: merge divergent branches
author Paper <paper@paper.us.eu.org>
date Sat, 13 Jan 2024 09:43:41 -0500
parents d030b30526d5
children c130f47f6f48
line wrap: on
line diff
--- a/src/services/anilist.cc	Sat Jan 13 09:42:02 2024 -0500
+++ b/src/services/anilist.cc	Sat Jan 13 09:43:41 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();
 }