From 083df84009b0813483e02ab81b60f033419ac314 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Tue, 8 Nov 2022 08:22:16 +0100 Subject: [PATCH] Removed duplicated code into SceneRaycaster --- src/slic3r/GUI/SceneRaycaster.cpp | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/src/slic3r/GUI/SceneRaycaster.cpp b/src/slic3r/GUI/SceneRaycaster.cpp index 96ae536ca7..a92c622c1b 100644 --- a/src/slic3r/GUI/SceneRaycaster.cpp +++ b/src/slic3r/GUI/SceneRaycaster.cpp @@ -228,35 +228,6 @@ int SceneRaycaster::base_id(EType type) return -1; } -#if ENABLE_RAYCAST_PICKING_DEBUG -size_t SceneRaycaster::active_beds_count() const -{ - size_t count = 0; - for (const auto& item : m_bed) { - if (item->is_active()) ++count; - } - return count; -} - -size_t SceneRaycaster::active_volumes_count() const -{ - size_t count = 0; - for (const auto& item : m_volumes) { - if (item->is_active()) ++count; - } - return count; -} - -size_t SceneRaycaster::active_gizmos_count() const -{ - size_t count = 0; - for (const auto& item : m_gizmos) { - if (item->is_active()) ++count; - } - return count; -} -#endif // ENABLE_RAYCAST_PICKING_DEBUG - int SceneRaycaster::encode_id(EType type, int id) { return base_id(type) + id; } int SceneRaycaster::decode_id(EType type, int id) { return id - base_id(type); }