diff --git a/pixivmodels.cpp b/pixivmodels.cpp index 68cb28e..f5c79a6 100644 --- a/pixivmodels.cpp +++ b/pixivmodels.cpp @@ -81,9 +81,6 @@ void from_json(const nlohmann::json& j, User& user) { void from_json(const nlohmann::json& j, Tag& tag) { j.at("tag").get_to(tag.japanese); - if (j.contains("romaji")) { - tag.romaji = j["romaji"].get(); - } if (j.contains("translation")) { tag.english = j["translation"].get(); } diff --git a/pixivmodels.h b/pixivmodels.h index 8b08560..f70b5b9 100644 --- a/pixivmodels.h +++ b/pixivmodels.h @@ -27,7 +27,6 @@ struct User { struct Tag { std::string japanese; - std::optional romaji; std::optional english; }; diff --git a/routes/artworks.cpp b/routes/artworks.cpp index db50805..f125bd1 100644 --- a/routes/artworks.cpp +++ b/routes/artworks.cpp @@ -171,7 +171,6 @@ static inline Element generate_illust_tags(const Illust& illust) { for (const Tag& i : illust.tags) { std::string tag = [&]() { if (i.english) return *i.english; - if (i.romaji) return *i.romaji; return i.japanese; }();