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:
parent
e2b863ed3f
commit
4f132b9e40
Notes:
github-actions[bot]
2025-05-11 01:21:22 +00:00
Author: https://github.com/trflynn89
Commit: 4f132b9e40
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4689
6 changed files with 13 additions and 24 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue