From a47b981c2254e1d49f58ebd4244c1be4624ba998 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Tue, 5 Nov 2024 15:49:59 +0100 Subject: remove util and api namespaces --- src/example/asset_manager.cpp | 2 +- src/example/audio_internal.cpp | 5 ++--- src/example/components_internal.cpp | 1 - src/example/log.cpp | 5 ++--- src/example/particle.cpp | 1 - src/example/physics.cpp | 1 - src/example/rendering.cpp | 1 - src/example/script.cpp | 5 ++--- 8 files changed, 7 insertions(+), 14 deletions(-) (limited to 'src/example') diff --git a/src/example/asset_manager.cpp b/src/example/asset_manager.cpp index 3d68ec0..f0d4575 100644 --- a/src/example/asset_manager.cpp +++ b/src/example/asset_manager.cpp @@ -3,7 +3,7 @@ #include using namespace crepe; -using namespace crepe::api; + int main() { // this needs to be called before the asset manager otherwise the destructor diff --git a/src/example/audio_internal.cpp b/src/example/audio_internal.cpp index c7dd163..7586441 100644 --- a/src/example/audio_internal.cpp +++ b/src/example/audio_internal.cpp @@ -10,7 +10,6 @@ #include using namespace crepe; -using namespace crepe::api; using namespace std; using namespace std::chrono_literals; using std::make_unique; @@ -18,8 +17,8 @@ using std::make_unique; // Unrelated stuff that is not part of this POC int _ = []() { // Show dbg_trace() output - auto & cfg = api::Config::get_instance(); - cfg.log.level = util::LogLevel::TRACE; + auto & cfg = Config::get_instance(); + cfg.log.level = LogLevel::TRACE; return 0; // satisfy compiler }(); diff --git a/src/example/components_internal.cpp b/src/example/components_internal.cpp index 3c68974..ea1eaad 100644 --- a/src/example/components_internal.cpp +++ b/src/example/components_internal.cpp @@ -15,7 +15,6 @@ #include -using namespace crepe::api; using namespace crepe; using namespace std; diff --git a/src/example/log.cpp b/src/example/log.cpp index 75f133c..db8aa48 100644 --- a/src/example/log.cpp +++ b/src/example/log.cpp @@ -7,13 +7,12 @@ #include using namespace crepe; -using namespace crepe::util; // unrelated setup code int _ = []() { // make sure all log messages get printed - auto & cfg = api::Config::get_instance(); - cfg.log.level = util::LogLevel::TRACE; + auto & cfg = Config::get_instance(); + cfg.log.level = LogLevel::TRACE; return 0; // satisfy compiler }(); diff --git a/src/example/particle.cpp b/src/example/particle.cpp index fb72b9b..38cff25 100644 --- a/src/example/particle.cpp +++ b/src/example/particle.cpp @@ -10,7 +10,6 @@ #include #include -using namespace crepe::api; using namespace crepe; using namespace std; diff --git a/src/example/physics.cpp b/src/example/physics.cpp index ae8d4ca..d3a0f32 100644 --- a/src/example/physics.cpp +++ b/src/example/physics.cpp @@ -10,7 +10,6 @@ #include #include -using namespace crepe::api; using namespace crepe; using namespace std; diff --git a/src/example/rendering.cpp b/src/example/rendering.cpp index 0bc222a..9c8d60c 100644 --- a/src/example/rendering.cpp +++ b/src/example/rendering.cpp @@ -15,7 +15,6 @@ using namespace std; using namespace crepe; -using namespace crepe::api; int main() { diff --git a/src/example/script.cpp b/src/example/script.cpp index 1901078..dac7af3 100644 --- a/src/example/script.cpp +++ b/src/example/script.cpp @@ -14,14 +14,13 @@ #include using namespace crepe; -using namespace crepe::api; using namespace std; // Unrelated stuff that is not part of this POC int _ = []() { // Show dbg_trace() output - auto & cfg = api::Config::get_instance(); - cfg.log.level = util::LogLevel::TRACE; + auto & cfg = Config::get_instance(); + cfg.log.level = LogLevel::TRACE; return 0; // satisfy compiler }(); -- cgit v1.2.3