From f9ada1a260aa978261512573c73f00987a4f875b Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 3 Feb 2024 18:46:50 +0100 Subject: b --- editor/tests-private.hpp | 2 -- editor/tests.cpp | 9 --------- 2 files changed, 11 deletions(-) diff --git a/editor/tests-private.hpp b/editor/tests-private.hpp index 15c6abaf..c4acc80d 100644 --- a/editor/tests-private.hpp +++ b/editor/tests-private.hpp @@ -30,8 +30,6 @@ protected: base_test(); }; -void label_left(StringView label, float width); - enum class Test : uint32_t { none, path, raycast, COUNT, }; diff --git a/editor/tests.cpp b/editor/tests.cpp index 58402ac0..2d9215a5 100644 --- a/editor/tests.cpp +++ b/editor/tests.cpp @@ -11,15 +11,6 @@ namespace floormat::tests { static_assert(arraySize(tests_data::fields) == (size_t)Test::COUNT); -void label_left(StringView label, float width) // copy-pasted from inspect.cpp -{ - float x = ImGui::GetCursorPosX(); - ImGui::TextEx(label.data(), label.data() + label.size()); - ImGui::SameLine(); - ImGui::SetCursorPosX(x + width + ImGui::GetStyle().ItemInnerSpacing.x); - ImGui::SetNextItemWidth(-1); -} - Pointer tests_data::make_test_none() { return {}; } } // namespace floormat::tests -- cgit v1.2.3