qbsp: remove/comment dead code

This commit is contained in:
Eric Wasylishen 2017-07-11 00:07:32 -06:00
parent be2799578f
commit 2710f9b1a1
3 changed files with 4 additions and 22 deletions

View File

@ -110,7 +110,6 @@ void
polylib::WindingCenter(const winding_t * w, vec3_t center)
{
int i;
vec3_t d1, d2, cross;
float scale;
VectorCopy(vec3_origin, center);

View File

@ -616,8 +616,8 @@ TexDef_BSPToQuakeEd(const qbsp_plane_t &faceplane, const texture_t *texture, con
{
// self check
qvec2f uv01_test = texPlaneToUV * p0p1;
qvec2f uv02_test = texPlaneToUV * p0p2;
// qvec2f uv01_test = texPlaneToUV * p0p1;
// qvec2f uv02_test = texPlaneToUV * p0p2;
// these fail if one of the texture axes is 0 length.
// checkEq(uv01_test, p0p1_uv, 0.01);
@ -801,7 +801,7 @@ Reverse_QuakeEd(qmat2x2f M, const qbsp_plane_t *plane, bool preserveX)
const qmat2x2f rotateMGuess = qv::inverse(applyGuessedFlipM) * flipRotate;
const float angleGuess = extractRotation(rotateMGuess);
const qmat2x2f Mident = rotateMGuess * rotation2x2_deg(-angleGuess);
// const qmat2x2f Mident = rotateMGuess * rotation2x2_deg(-angleGuess);
const qmat2x2f applyAngleGuessM = rotation2x2_deg(angleGuess);
const qmat2x2f Mguess = applyGuessedFlipM * applyAbsScaleM * applyAngleGuessM * axisFlipsM;
@ -992,14 +992,6 @@ SetTexinfo_QuakeEd(const qbsp_plane_t *plane, const vec3_t planepts[3], const ve
}
}
static
texdef_etp_t TexDef_BSPToETP(const qbsp_plane_t &faceplane, const float in_vecs[2][4])
{
Error("unimplemented");
texdef_etp_t res;
return res;
}
static void
SetTexinfo_QuArK(parser_t *parser, vec3_t planepts[3],
texcoord_style_t style, mtexinfo_t *out)
@ -1767,15 +1759,6 @@ LoadMapFile(void)
Message(msgLiteral, "\n");
}
static std::string
TexDefToString_QuarkType1(const mapface_t &mapface, const mtexinfo_t &texinfo)
{
Error("Unimplemented\n");
return "";
}
static texdef_valve_t
TexDef_BSPToValve(const float in_vecs[2][4])
{

View File

@ -124,7 +124,7 @@ wad_t *
WADList_Init(const char *wadstring)
{
int len;
wad_t wad, *wadlist, *newwad;
wad_t *wadlist;
const char *fname;
char *fpath;
const char *pos;