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:
1 parent
17f31ea3e0
commit
f8757d6040
5 files changed
+13
-51
No files matched your search
@@ -20,7 +20,7 @@ namespace Echoion::Core
|
||||
|
||||
return Api::StateBlob{.data = std::move(data),
|
||||
.version = CURRENT_VERSION,
|
||||
.timestamp = getCurrentTimestampISO8601()};
|
||||
.timestamp = Void::Time::utc_now_iso8601()};
|
||||
}
|
||||
|
||||
Api::Result<StateV1>
|
||||
@@ -130,9 +130,4 @@ namespace Echoion::Core
|
||||
return 0;
|
||||
}
|
||||
|
||||
std::string StateSerializer::getCurrentTimestampISO8601()
|
||||
{
|
||||
return Void::Time::utc_now_iso8601();
|
||||
}
|
||||
|
||||
} // namespace Echoion::Core
|
||||
Reference in new issue
Block a user