aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2023-10-05 21:46:34 +0800
committercrupest <crupest@outlook.com>2023-10-05 21:46:34 +0800
commit90feae14e708fbb0b313503a6e76cfbd77f94ce1 (patch)
tree254a6e453da9062c66862c42669afc9924378d42 /src/common
parenta5d07d55ef4395a5836fd0d2cd86b94290cb2d07 (diff)
downloadcru-90feae14e708fbb0b313503a6e76cfbd77f94ce1.tar.gz
cru-90feae14e708fbb0b313503a6e76cfbd77f94ce1.tar.bz2
cru-90feae14e708fbb0b313503a6e76cfbd77f94ce1.zip
...
Diffstat (limited to 'src/common')
-rw-r--r--src/common/CMakeLists.txt1
-rw-r--r--src/common/platform/unix/ErrnoException.cpp5
-rw-r--r--src/common/platform/unix/UnixFileStream.cpp2
3 files changed, 1 insertions, 7 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt
index 6541f156..31ec94db 100644
--- a/src/common/CMakeLists.txt
+++ b/src/common/CMakeLists.txt
@@ -21,7 +21,6 @@ target_compile_definitions(CruBase PUBLIC $<$<CONFIG:Debug>:CRU_DEBUG>)
if (UNIX AND NOT EMSCRIPTEN)
target_sources(CruBase PRIVATE
- platform/unix/ErrnoException.cpp
platform/unix/UnixFileStream.cpp
)
diff --git a/src/common/platform/unix/ErrnoException.cpp b/src/common/platform/unix/ErrnoException.cpp
deleted file mode 100644
index 06c42ff6..00000000
--- a/src/common/platform/unix/ErrnoException.cpp
+++ /dev/null
@@ -1,5 +0,0 @@
-#include "cru/common/platform/unix/ErrnoException.h"
-
-namespace cru::platform::unix {
-// Moved to Exception.cpp
-} // namespace cru::platform::unix
diff --git a/src/common/platform/unix/UnixFileStream.cpp b/src/common/platform/unix/UnixFileStream.cpp
index c0373c5a..39870507 100644
--- a/src/common/platform/unix/UnixFileStream.cpp
+++ b/src/common/platform/unix/UnixFileStream.cpp
@@ -1,7 +1,7 @@
#include "cru/common/platform/unix/UnixFileStream.h"
+#include "cru/common/Exception.h"
#include "cru/common/Format.h"
#include "cru/common/io/Stream.h"
-#include "cru/common/platform/unix/ErrnoException.h"
#include <fcntl.h>
#include <sys/fcntl.h>