diff --git a/include/qbsp/csg.hh b/include/qbsp/csg.hh index 9fb99e80..41110e77 100644 --- a/include/qbsp/csg.hh +++ b/include/qbsp/csg.hh @@ -34,8 +34,5 @@ struct side_t; std::unique_ptr NewFaceFromFace(const face_t *in); std::unique_ptr CopyFace(const face_t* in); -std::unique_ptr MirrorFace(const face_t *face); std::tuple, std::unique_ptr> SplitFace(std::unique_ptr in, const qplane3d &split); void UpdateFaceSphere(face_t *in); -bool BrushGE(const bspbrush_t &a, const bspbrush_t &b); -std::vector> ChopBrushes(const std::vector> &input); diff --git a/include/qbsp/faces.hh b/include/qbsp/faces.hh index cc893256..9c6ec57b 100644 --- a/include/qbsp/faces.hh +++ b/include/qbsp/faces.hh @@ -27,7 +27,5 @@ struct node_t; class mapentity_t; struct face_t; -std::list SubdivideFace(face_t *f); -void MakeVisibleFaces(mapentity_t *entity, node_t *headnode); void MakeMarkFaces(mapentity_t* entity, node_t* headnode); void MakeFaces(node_t *node); diff --git a/qbsp/csg.cc b/qbsp/csg.cc index 27b56211..be2935e9 100644 --- a/qbsp/csg.cc +++ b/qbsp/csg.cc @@ -123,12 +123,3 @@ std::tuple, std::unique_ptr> SplitFace(std::uniq return {std::move(new_front), std::move(new_back)}; } - -std::unique_ptr MirrorFace(const face_t *face) -{ - auto newface = NewFaceFromFace(face); - newface->w = face->w.flip(); - newface->planeside = static_cast(face->planeside ^ 1); - - return newface; -} diff --git a/qbsp/faces.cc b/qbsp/faces.cc index 2f77aced..ea615c7b 100644 --- a/qbsp/faces.cc +++ b/qbsp/faces.cc @@ -59,7 +59,7 @@ If the face is >256 in either texture direction, carve a valid sized piece off and insert the remainder in the next link =============== */ -std::list> SubdivideFace(std::unique_ptr f) +static std::list> SubdivideFace(std::unique_ptr f) { vec_t mins, maxs; vec_t v;