qbsp: clean up some dead code

This commit is contained in:
Eric Wasylishen 2022-07-04 01:15:17 -06:00
parent 554e29e861
commit 92aa55db8f
4 changed files with 1 additions and 15 deletions

View File

@ -34,8 +34,5 @@ struct side_t;
std::unique_ptr<face_t> NewFaceFromFace(const face_t *in); std::unique_ptr<face_t> NewFaceFromFace(const face_t *in);
std::unique_ptr<face_t> CopyFace(const face_t* in); std::unique_ptr<face_t> CopyFace(const face_t* in);
std::unique_ptr<face_t> MirrorFace(const face_t *face);
std::tuple<std::unique_ptr<face_t>, std::unique_ptr<face_t>> SplitFace(std::unique_ptr<face_t> in, const qplane3d &split); std::tuple<std::unique_ptr<face_t>, std::unique_ptr<face_t>> SplitFace(std::unique_ptr<face_t> in, const qplane3d &split);
void UpdateFaceSphere(face_t *in); void UpdateFaceSphere(face_t *in);
bool BrushGE(const bspbrush_t &a, const bspbrush_t &b);
std::vector<std::unique_ptr<bspbrush_t>> ChopBrushes(const std::vector<std::unique_ptr<bspbrush_t>> &input);

View File

@ -27,7 +27,5 @@ struct node_t;
class mapentity_t; class mapentity_t;
struct face_t; struct face_t;
std::list<face_t *> SubdivideFace(face_t *f);
void MakeVisibleFaces(mapentity_t *entity, node_t *headnode);
void MakeMarkFaces(mapentity_t* entity, node_t* headnode); void MakeMarkFaces(mapentity_t* entity, node_t* headnode);
void MakeFaces(node_t *node); void MakeFaces(node_t *node);

View File

@ -123,12 +123,3 @@ std::tuple<std::unique_ptr<face_t>, std::unique_ptr<face_t>> SplitFace(std::uniq
return {std::move(new_front), std::move(new_back)}; return {std::move(new_front), std::move(new_back)};
} }
std::unique_ptr<face_t> MirrorFace(const face_t *face)
{
auto newface = NewFaceFromFace(face);
newface->w = face->w.flip();
newface->planeside = static_cast<planeside_t>(face->planeside ^ 1);
return newface;
}

View File

@ -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 piece off and insert the remainder in the next link
=============== ===============
*/ */
std::list<std::unique_ptr<face_t>> SubdivideFace(std::unique_ptr<face_t> f) static std::list<std::unique_ptr<face_t>> SubdivideFace(std::unique_ptr<face_t> f)
{ {
vec_t mins, maxs; vec_t mins, maxs;
vec_t v; vec_t v;