         
         const newVisibleRowIndices:Vector.<int> = new Vector.<int>();
         const newVisibleItemRenderers:Vector.<IGridItemRenderer> = new Vector.<IGridItemRenderer>();
-        const allocatedItemRenderers:Vector.<IGridItemRenderer> = new Vector.<IGridItemRenderer>();
-        var createdItemRenderers:Vector.<IGridItemRenderer> = null;
         
         var cellX:Number = startCellX;
         var cellY:Number = startCellY;

                    column = getGridColumn(colIndex);
                    var factory:IFactory = itemToRenderer(column, dataItem);
                    renderer = allocateGridElement(factory) as IGridItemRenderer;
                    
                    // Track which item renderers were created (uncommon) or recycled
                    // for the sake of the IGridItemRenderer prepare() method.

                    if (createdGridElement)
                    {
                        if (!createdItemRenderers)
                            createdItemRenderers = new Vector.<IGridItemRenderer>();
                        createdItemRenderers.push(renderer);
                    }
                    else
                        allocatedItemRenderers.push(renderer);
                }
                if (renderer.parent != rendererLayer)
                    rendererLayer.addElement(renderer);
                newVisibleItemRenderers.push(renderer);
                initializeItemRenderer(renderer, rowIndex, colIndex);
                
                var colWidth:Number = gridDimensions.getColumnWidth(colIndex);
                layoutItemRenderer(renderer, cellX, cellY, colWidth, rowHeight);

            else
                availableHeight -= rowHeight + rowGap;            
        }
        
        // Free renderers that aren't in use
        
