AK+LibCore: Remove SerenityOS handling from Error and Core::System

This is just to make some syscall error handling changes simpler.
This commit is contained in:
Timothy Flynn 2025-05-10 16:17:39 -04:00 committed by Tim Flynn
commit 24ac5e2eee
Notes: github-actions[bot] 2025-05-11 01:21:13 +00:00
2 changed files with 13 additions and 184 deletions

View file

@ -166,13 +166,6 @@ public:
{
}
#ifdef AK_OS_SERENITY
ErrorOr(ErrnoCode code)
: m_value_or_error(Error::from_errno(code))
{
}
#endif
T& value()
{
return m_value_or_error.template get<T>();