unused variable cleanup

This commit is contained in:
Azaezel 2016-10-14 17:49:56 -05:00
parent 1131ed15df
commit cc9955e102
9 changed files with 0 additions and 35 deletions

View file

@ -45,9 +45,6 @@
// Debug Profiling.
#include "platform/profiler.h"
static U32 execDepth = 0;
static U32 journalDepth = 1;
//-----------------------------------------------------------------------------
IMPLEMENT_CONOBJECT(ShapeAsset);

View file

@ -176,7 +176,6 @@ bool GFXD3D9ShaderBufferLayout::setMatrix(const ParamDesc& pd, const GFXShaderCo
}
else if (pd.constType == GFXSCT_Float4x3)
{
F32 buffer[4*4];
const U32 csize = 48;
// Loop through and copy

View file

@ -511,7 +511,6 @@ void GuiTSCtrl::onRender(Point2I offset, const RectI &updateRect)
U32 origStyle = GFX->getCurrentRenderStyle();
// Set up the appropriate render style
U32 prevRenderStyle = GFX->getCurrentRenderStyle();
Point2I renderSize = getExtent();
Frustum frustum;
@ -795,7 +794,6 @@ void GuiTSCtrl::renderDisplayPreview(const RectI &updateRect, GFXTexHandle &prev
F32 screenBottom = rectHeight;
const F32 fillConv = 0.0f;
const F32 frustumDepthAdjusted = 0.0f;
verts[0].point.set(screenLeft - fillConv, screenTop - fillConv, 0.f);
verts[1].point.set(screenRight - fillConv, screenTop - fillConv, 0.f);
verts[2].point.set(screenLeft - fillConv, screenBottom - fillConv, 0.f);

View file

@ -176,7 +176,6 @@ void GuiRolloutCtrl::removeObject( SimObject *obj )
void GuiRolloutCtrl::onMouseDown( const GuiEvent &event )
{
Point2I localPoint = globalToLocalCoord( event.mousePoint );
mouseLock();
}

View file

@ -149,13 +149,9 @@ void ReflectionManager::update( F32 timeSlice,
// Calculate an ideal culling size here, we'll just assume double fov based on the first fovport based on
// the head position.
FovPort port = query.fovPort[0];
F32 leftSize = query.nearPlane * port.leftTan;
F32 rightSize = query.nearPlane * port.rightTan;
F32 upSize = query.nearPlane * port.upTan;
F32 downSize = query.nearPlane * port.downTan;
F32 left = -leftSize;
F32 right = rightSize;
F32 top = upSize;
F32 bottom = -downSize;
@ -212,7 +208,6 @@ void ReflectionManager::update( F32 timeSlice,
mTimer->getElapsedMs();
mTimer->reset();
U32 numUpdated = 0;
U32 currentTarget = stereoTarget >= 0 ? stereoTarget : 0;
reflectorIter = mReflectors.begin();
for ( ; reflectorIter != mReflectors.end(); reflectorIter++ )
{

View file

@ -624,7 +624,6 @@ void PlaneReflector::updateReflection( const ReflectParams &params )
MatrixF origNonClipProjection = gClientSceneGraph->getNonClipProjection();
PFXFrameState origPFXState = PFXMGR->getFrameState();
const FovPort *currentFovPort = params.query->fovPort;
MatrixF inverseEyeTransforms[2];
Frustum gfxFrustum;

View file

@ -246,7 +246,6 @@ void SceneManager::renderScene( SceneRenderState* renderState, U32 objectMask, S
PFXFrameState origPFXState = PFXMGR->getFrameState();
const FovPort *currentFovPort = GFX->getStereoFovPort();
const MatrixF *eyeTransforms = GFX->getStereoEyeTransforms();
const MatrixF *worldEyeTransforms = GFX->getInverseStereoEyeTransforms();
// Render left half of display

View file

@ -1446,7 +1446,6 @@ void TSSkinMesh::setupVertexTransforms()
for( i = 0, j = 0; i < curTransform.transformCount; i += 4, j += 1 )
{
__TSMeshVertex_BoneData &v = mVertexData.getBone(curTransform.vertexIndex, j);
const BatchData::TransformOp &transformOp = curTransform.transform[i];
S32 vertsSet = transformsLeft > 4 ? 4 : transformsLeft;
__TSMeshIndex_List indices;
@ -3183,9 +3182,6 @@ U32 TSMesh::getNumVerts()
void TSMesh::_convertToVertexData(TSMeshVertexArray &outArray, const Vector<Point3F> &_verts, const Vector<Point3F> &_norms)
{
U32 colorOffset = 0;
U32 boneOffset = 0;
// Update tangents list
createTangents(verts, norms);
@ -3202,7 +3198,6 @@ void TSMesh::_convertToVertexData(TSMeshVertexArray &outArray, const Vector<Poin
if (mNumVerts == 0)
return;
bool needsSkin = mVertexFormat->hasBlendIndices();
bool needWeightSet = outArray.getBoneOffset() != 0;
bool hasColor = getHasColor();
@ -3240,8 +3235,6 @@ void TSMesh::_convertToVertexData(TSMeshVertexArray &outArray, const Vector<Poin
void TSMesh::makeEditable()
{
bool hasTVert2 = getHasTVert2();
bool hasColor = getHasColor();
bool hasVerts = verts.size() != 0;
if(mVertexData.isReady() && !hasVerts)
@ -3293,8 +3286,6 @@ void TSSkinMesh::addWeightsFromVertexBuffer()
void TSSkinMesh::makeEditable()
{
bool hasTVert2 = getHasTVert2();
bool hasColor = getHasColor();
bool hasVerts = verts.size() != 0;
// Reconstruct bone mapping

View file

@ -681,7 +681,6 @@ void TSShape::initVertexBuffers()
if (TSSkinMesh::smDebugSkinVerts)
{
U32 vertsInBuffer = mShapeVertexData.size / mVertexSize;
U32 primsInBuffer = piInput - mShapeVertexIndices->mPrimitiveArray;
U32 indsInBuffer = ibIndices - indicesStart;
for (U32 i = 0; i < primStart; i++)
@ -723,7 +722,6 @@ void TSShape::getVertexBuffer(TSVertexBufferHandle &vb, GFXBufferType bufferType
{
vb.set(GFX, mVertexSize, &mVertexFormat, mShapeVertexData.size / mVertexSize, bufferType);
U8 *vertexData = mShapeVertexData.base;
U8 *vertPtr = vb.lock();
dMemcpy(vertPtr, mShapeVertexData.base, mShapeVertexData.size);
vb.unlock();
@ -770,12 +768,6 @@ void TSShape::initVertexBufferPointers()
void TSShape::initVertexFeatures()
{
bool hasColors = false;
bool hasTexcoord2 = false;
bool hasSkin = false;
U32 vertStart = 0;
U32 primStart = 0;
U32 indStart = 0;
if (!needsBufferUpdate())
{
@ -876,7 +868,6 @@ void TSShape::initVertexFeatures()
for (Vector<TSMesh*>::iterator iter = meshes.begin(); iter != meshes.end(); iter++)
{
TSMesh *mesh = *iter;
U32 idx = iter - meshes.begin();
if (!mesh ||
(mesh->getMeshType() != TSMesh::StandardMeshType &&
@ -1457,7 +1448,6 @@ void TSShape::assembleShape()
if (tsalloc.getBuffer() && vboSize > 0)
{
U8 *vertexData = (U8*)dMalloc_aligned(vboSize, 16);
U8 *vertexDataPtr = vertexData;
dMemcpy(vertexData, vboData, vboSize);
mShapeVertexData.set(vertexData, vboSize);
mShapeVertexData.vertexDataReady = true;
@ -1759,8 +1749,6 @@ void TSShape::disassembleShape()
{
// Vertex format now included with mesh data. Note this doesn't include index data which
// is constructed directly in the buffer from the meshes
S8 *vboData = NULL;
S32 vboSize = 0;
mBasicVertexFormat.writeAlloc(&tsalloc);