Inline 4 trivial Void delegation shims

Remove YouTubeClient::urlEncode/decodeHtmlEntities/parseIso8601Duration and
StateSerializer::getCurrentTimestampISO8601 — each just forwarded to one Void
call — and have the ~12 call sites call Void directly
(Void::Encoding::Url::encode, Void::Text::html_unescape,
Void::Time::parse_iso8601_interval(...).value_or(0), Void::Time::utc_now_iso8601).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Opus 4.8 committed 2026-06-22 22:04:43 +03:00
1 parent 17f31ea3e0
commit f8757d6040
5 files changed
+13 -51

No files matched your search

-9
View File
@@ -135,15 +135,6 @@ namespace Echoion::Core
void fetchVideoDurations(std::vector<Api::TrackInfo>& tracks,
const std::vector<std::string>& videoIds);
// Parse ISO 8601 duration string
[[nodiscard]] static std::chrono::seconds
parseIso8601Duration(const std::string& duration);
// URL encode/decode helpers
[[nodiscard]] static std::string urlEncode(std::string_view value);
[[nodiscard]] static std::string
decodeHtmlEntities(std::string_view value);
// Internal methods for playlist resolution
[[nodiscard]] Api::Result<std::vector<Api::YouTubePlaylistItem>>
fetchPlaylistItems(std::string_view playlistId);
@@ -33,9 +33,6 @@ namespace Echoion::Core
// Extract version from JSON blob
static uint32_t extractVersion(const std::string& jsonStr);
// Helper to get current timestamp
static std::string getCurrentTimestampISO8601();
// Make it accessible to StateMigration
friend class StateMigration;
};