From 35076796591d8a845bd75f64088da7f945ade2f9 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Tue, 20 Dec 2022 13:02:22 +0000 Subject: Lagom: Remove test apps These are no longer useful or necessary now that a lot of different applications run on Lagom. --- Meta/Lagom/CMakeLists.txt | 7 ------- Meta/Lagom/TestApp.cpp | 21 --------------------- Meta/Lagom/TestJson.cpp | 17 ----------------- 3 files changed, 45 deletions(-) delete mode 100644 Meta/Lagom/TestApp.cpp delete mode 100644 Meta/Lagom/TestJson.cpp diff --git a/Meta/Lagom/CMakeLists.txt b/Meta/Lagom/CMakeLists.txt index d555a7e391..bfa1a6fb53 100644 --- a/Meta/Lagom/CMakeLists.txt +++ b/Meta/Lagom/CMakeLists.txt @@ -443,13 +443,6 @@ if (BUILD_LAGOM) # Lagom Services add_serenity_subdirectory(Userland/Services) - # Lagom Examples - add_executable(TestApp TestApp.cpp) - target_link_libraries(TestApp LibCore) - - add_executable(TestJson TestJson.cpp) - target_link_libraries(TestJson LibCore) - # Lagom Utilities if (NOT EMSCRIPTEN) add_executable(adjtime ../../Userland/Utilities/adjtime.cpp) diff --git a/Meta/Lagom/TestApp.cpp b/Meta/Lagom/TestApp.cpp deleted file mode 100644 index 8b90f2cac2..0000000000 --- a/Meta/Lagom/TestApp.cpp +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) 2018-2020, Andreas Kling - * - * SPDX-License-Identifier: BSD-2-Clause - */ - -#include -#include -#include - -int main(int, char**) -{ - Core::EventLoop event_loop; - - auto timer = Core::Timer::construct(100, [&] { - dbgln("Timer fired, good-bye! :^)"); - event_loop.quit(0); - }); - - return event_loop.exec(); -} diff --git a/Meta/Lagom/TestJson.cpp b/Meta/Lagom/TestJson.cpp deleted file mode 100644 index 94c75c019a..0000000000 --- a/Meta/Lagom/TestJson.cpp +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright (c) 2020, Andreas Kling - * - * SPDX-License-Identifier: BSD-2-Clause - */ - -#include -#include -#include - -int main(int, char**) -{ - auto value = JsonValue::from_string("{\"property\": \"value\"}"sv).release_value_but_fixme_should_propagate_errors(); - printf("parsed: _%s_\n", value.to_deprecated_string().characters()); - printf("object.property = '%s'\n", value.as_object().get("property"sv).to_deprecated_string().characters()); - return 0; -} -- cgit v1.2.3