aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/cru/common/platform/unix/ErrnoException.h14
-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
4 files changed, 1 insertions, 21 deletions
diff --git a/include/cru/common/platform/unix/ErrnoException.h b/include/cru/common/platform/unix/ErrnoException.h
deleted file mode 100644
index 97edcc78..00000000
--- a/include/cru/common/platform/unix/ErrnoException.h
+++ /dev/null
@@ -1,14 +0,0 @@
-#pragma once
-
-#include "../../PreConfig.h"
-
-#ifdef CRU_PLATFORM_UNIX
-
-#include "../Exception.h"
-
-namespace cru::platform::unix {
-// Moved to Exception.h
-using ErrnoException = cru::ErrnoException;
-} // namespace cru::platform::unix
-
-#endif
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>