From b9f3d3c349bcf1d68e5a7be990e0ee568cf0a41b Mon Sep 17 00:00:00 2001 From: apio Date: Thu, 8 Dec 2022 16:09:33 +0100 Subject: [PATCH] Remove ENONE If you want to return an error without meaning, use Option. --- luna/include/luna/SystemError.h | 3 +-- luna/src/SystemError.cpp | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/luna/include/luna/SystemError.h b/luna/include/luna/SystemError.h index 16bef760..0c952b57 100644 --- a/luna/include/luna/SystemError.h +++ b/luna/include/luna/SystemError.h @@ -52,8 +52,7 @@ #define ETIMEDOUT 110 // Connection timed out #define EALREADY 114 // Operation already in progress -// These ones are Luna-specific. +// This one is Luna-specific. #define EFIXME 342 // Functionality not yet implemented -#define ENONE 343 // Internal or insignificant error const char* error_string(int error); \ No newline at end of file diff --git a/luna/src/SystemError.cpp b/luna/src/SystemError.cpp index 27aa0853..2e1f63ad 100644 --- a/luna/src/SystemError.cpp +++ b/luna/src/SystemError.cpp @@ -55,7 +55,6 @@ const char* error_string(int error) case ETIMEDOUT: return "Connection timed out"; case EALREADY: return "Operation already in progress"; case EFIXME: return "Functionality not yet implemented"; - case ENONE: return "Internal or insignificant error"; default: return "Unknown error"; } } \ No newline at end of file