1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 09:34:57 +09:00

AK: Remove Error::from_string_view_or_print_error_and_return_errno

This was for use within Serenity's kernel. In Ladybird, it is just some
indirection to Error::from_string_view.
This commit is contained in:
Timothy Flynn 2025-05-10 16:12:27 -04:00 committed by Tim Flynn
parent e2b863ed3f
commit 4f132b9e40
Notes: github-actions[bot] 2025-05-11 01:21:22 +00:00
6 changed files with 13 additions and 24 deletions

View file

@ -36,12 +36,6 @@ public:
static Error from_windows_error();
#endif
// NOTE: For calling this method from within kernel code, we will simply print
// the error message and return the errno code.
// For calling this method from userspace programs, we will simply return from
// the Error::from_string_view method!
static Error from_string_view_or_print_error_and_return_errno(StringView string_literal, int code);
static Error from_syscall(StringView syscall_name, int rc)
{
return Error(syscall_name, rc);