From 88de6c67ff8fd2d8c9e311b0a518c797ae53bcd4 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 25 Mar 2024 01:44:12 +0100 Subject: remove dead/commented out code --- editor/inspect-types.cpp | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'editor') diff --git a/editor/inspect-types.cpp b/editor/inspect-types.cpp index b9c3eb6e..899bc851 100644 --- a/editor/inspect-types.cpp +++ b/editor/inspect-types.cpp @@ -65,9 +65,7 @@ struct entity_accessors { }, E::type::field{"offset"_s, [](const object& x) { return Vector2i(x.offset); }, // todo return Vector2b - //[](object& x, Vector2i value) { x.set_bbox(value, x.bbox_offset, x.bbox_size, x.pass); }, [](object& x, Vector2i value) { x.move_to(value - Vector2i(x.offset)); }, - //constantly(constraints::range{Vector2b(iTILE_SIZE2/-2), Vector2b(iTILE_SIZE2/2)}), }, E::type::field{"pass-mode"_s, &object::pass, @@ -119,7 +117,6 @@ struct entity_accessors { return std::visit(overloaded { [&](const door_scenery&) { return st::enabled; }, [&](const generic_scenery&) { return st::enabled; }, - //[](auto&&) { return st::hidden; }, }, x.subtype); }, }, @@ -136,14 +133,6 @@ struct has_anim_atlas : std::true_type { static const anim_atlas& get_atlas(const object& x) { return *x.atlas; } }; -#if 0 -template<> struct has_anim_atlas : std::true_type { - static const anim_atlas& get_atlas(const object& x) { return *x.atlas; } -}; -template<> struct has_anim_atlas : has_anim_atlas {}; -template<> struct has_anim_atlas : has_anim_atlas {}; -#endif - using enum_pair = std::pair; template struct enum_values; @@ -284,7 +273,6 @@ struct entity_accessors } }; -//template bool inspect_type(object&); template bool inspect_type(scenery&, inspect_intent_t); template bool inspect_type(critter&, inspect_intent_t); template bool inspect_type(light&, inspect_intent_t); @@ -294,7 +282,6 @@ bool inspect_object_subtype(object& x) switch (auto type = x.type()) { default: fm_warn_once("unknown object subtype '%d'", (int)type); return false; - //case object_type::none: return inspect_type(x); case object_type::scenery: return inspect_type(static_cast(x), inspect_intent_t{}); case object_type::critter: return inspect_type(static_cast(x), inspect_intent_t{}); case object_type::light: return inspect_type(static_cast(x), inspect_intent_t{}); -- cgit v1.2.3