diff --git a/include/qbsp/portals.hh b/include/qbsp/portals.hh index a372e305..6012c0aa 100644 --- a/include/qbsp/portals.hh +++ b/include/qbsp/portals.hh @@ -74,7 +74,6 @@ enum class portaltype_t { }; std::list> MakeTreePortals_r(tree_t *tree, node_t *node, portaltype_t type, std::list> boundary_portals, portalstats_t &stats); void MakeTreePortals(tree_t *tree); -void AssertNoPortals(tree_t *tree); std::list> MakeHeadnodePortals(tree_t *tree); void MakePortalsFromBuildportals(tree_t *tree, std::list> buildportals); void EmitAreaPortals(node_t *headnode); diff --git a/qbsp/portals.cc b/qbsp/portals.cc index 2f88973d..74b5a3f6 100644 --- a/qbsp/portals.cc +++ b/qbsp/portals.cc @@ -521,8 +521,6 @@ void MakeTreePortals(tree_t *tree) FreeTreePortals(tree); - AssertNoPortals(tree); - portalstats_t stats{}; auto headnodeportals = MakeHeadnodePortals(tree); @@ -539,23 +537,6 @@ void MakeTreePortals(tree_t *tree) logging::print(logging::flag::STAT, " {:8} tree portals\n", tree->portals.size()); } -static void AssertNoPortals_r(node_t *node) -{ - Q_assert(!node->portals); - - if (!node->is_leaf) { - AssertNoPortals_r(node->children[0]); - AssertNoPortals_r(node->children[1]); - } -} - -void AssertNoPortals(tree_t *tree) -{ - AssertNoPortals_r(tree->headnode); - Q_assert(!tree->outside_node.portals); - Q_assert(tree->portals.empty()); -} - /* ========================================================= diff --git a/qbsp/prtfile.cc b/qbsp/prtfile.cc index dffb4665..329663d0 100644 --- a/qbsp/prtfile.cc +++ b/qbsp/prtfile.cc @@ -263,8 +263,6 @@ void WritePortalFile(tree_t *tree) FreeTreePortals(tree); - AssertNoPortals(tree); - MakeHeadnodePortals(tree); portalstats_t stats{};