aboutsummaryrefslogtreecommitdiff
path: root/src/platform/native
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-03-24 19:14:19 +0800
committercrupest <crupest@outlook.com>2021-03-24 19:14:19 +0800
commit7f15a1ff9a2007e119798053083a0a87d042990a (patch)
treecb35c01a7eaee867376d959b96c9bbd15df939e5 /src/platform/native
parent74956951ee663012df0c3fe4ebe29799cb2f7732 (diff)
parent7703063a5816b089483e78ccd74bb9902ccfbea8 (diff)
downloadcru-7f15a1ff9a2007e119798053083a0a87d042990a.tar.gz
cru-7f15a1ff9a2007e119798053083a0a87d042990a.tar.bz2
cru-7f15a1ff9a2007e119798053083a0a87d042990a.zip
Merge branch 'master' of https://github.com/crupest/CruUI
Diffstat (limited to 'src/platform/native')
-rw-r--r--src/platform/native/CMakeLists.txt13
-rw-r--r--src/platform/native/UiApplication.cpp15
2 files changed, 0 insertions, 28 deletions
diff --git a/src/platform/native/CMakeLists.txt b/src/platform/native/CMakeLists.txt
deleted file mode 100644
index c68a0958..00000000
--- a/src/platform/native/CMakeLists.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-set(CRU_PLATFORM_NATIVE_INCLUDE_DIR ${CRU_INCLUDE_DIR}/cru/platform/native)
-add_library(cru_platform_native STATIC
- UiApplication.cpp
-)
-target_sources(cru_platform_native PUBLIC
- ${CRU_PLATFORM_NATIVE_INCLUDE_DIR}/Base.hpp
- ${CRU_PLATFORM_NATIVE_INCLUDE_DIR}/Cursor.hpp
- ${CRU_PLATFORM_NATIVE_INCLUDE_DIR}/InputMethod.hpp
- ${CRU_PLATFORM_NATIVE_INCLUDE_DIR}/Keyboard.hpp
- ${CRU_PLATFORM_NATIVE_INCLUDE_DIR}/Window.hpp
- ${CRU_PLATFORM_NATIVE_INCLUDE_DIR}/UiApplication.hpp
-)
-target_link_libraries(cru_platform_native PUBLIC cru_platform_graph)
diff --git a/src/platform/native/UiApplication.cpp b/src/platform/native/UiApplication.cpp
deleted file mode 100644
index 200b10e0..00000000
--- a/src/platform/native/UiApplication.cpp
+++ /dev/null
@@ -1,15 +0,0 @@
-#include "cru/platform/native/UiApplication.hpp"
-
-namespace cru::platform::native {
-IUiApplication* IUiApplication::instance = nullptr;
-
-IUiApplication::IUiApplication() {
- if (instance) {
- throw std::runtime_error("An ui application has already been created.");
- }
-
- instance = this;
-}
-
-IUiApplication::~IUiApplication() { instance = nullptr; }
-} // namespace cru::platform::native