From f5ff5884bcfbeae80703c767499a17cc7c8478e7 Mon Sep 17 00:00:00 2001 From: Sahab Yazdani Date: Tue, 6 Mar 2012 12:51:26 -0500 Subject: [PATCH 1/2] Remove unused variables from fnSetColumnVis --- media/src/api/api.methods.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media/src/api/api.methods.js b/media/src/api/api.methods.js index 3b1394b8..7593cc6f 100644 --- a/media/src/api/api.methods.js +++ b/media/src/api/api.methods.js @@ -978,7 +978,7 @@ this.fnSetColumnVis = function ( iCol, bShow, bRedraw ) var i, iLen; var aoColumns = oSettings.aoColumns; var aoData = oSettings.aoData; - var nTd, nCell, anTrs, jqChildren, bAppend, iBefore; + var nTd, bAppend, iBefore; /* No point in doing anything if we are requesting what is already true */ if ( aoColumns[iCol].bVisible == bShow ) From 1ef5243cab2ff8b258593bf1c8783a1bd8555543 Mon Sep 17 00:00:00 2001 From: Sahab Yazdani Date: Tue, 6 Mar 2012 12:51:56 -0500 Subject: [PATCH 2/2] Remove unused variables from fnUpdate --- media/src/api/api.methods.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media/src/api/api.methods.js b/media/src/api/api.methods.js index 7593cc6f..53258a3c 100644 --- a/media/src/api/api.methods.js +++ b/media/src/api/api.methods.js @@ -1164,7 +1164,7 @@ this.fnSortListener = function( nNode, iColumn, fnCallback ) this.fnUpdate = function( mData, mRow, iColumn, bRedraw, bAction ) { var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] ); - var iVisibleColumn, i, iLen, sDisplay; + var i, iLen, sDisplay; var iRow = (typeof mRow === 'object') ? _fnNodeToDataIndex(oSettings, mRow) : mRow;