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) polylib::WindingCenter(const winding_t * w, vec3_t center)
{ {
int i; int i;
vec3_t d1, d2, cross;
float scale; float scale;
VectorCopy(vec3_origin, center); VectorCopy(vec3_origin, center);

View File

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

View File

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