Bug 774040 - remove unused field. r=roc.

This commit is contained in:
Rafael Ávila de Espíndola 2012-07-15 00:20:24 -04:00
parent ee5d92ee8a
commit 9115f02bb5
3 changed files with 4 additions and 6 deletions

View File

@ -257,7 +257,7 @@ BasicTableLayoutStrategy::ComputeColumnIntrinsicWidths(nsRenderingContext* aRend
nsTableCellMap *cellMap = tableFrame->GetCellMap(); nsTableCellMap *cellMap = tableFrame->GetCellMap();
mozilla::AutoStackArena arena; mozilla::AutoStackArena arena;
SpanningCellSorter spanningCells(tableFrame->PresContext()->PresShell()); SpanningCellSorter spanningCells;
// Loop over the columns to consider the columns and cells *without* // Loop over the columns to consider the columns and cells *without*
// a colspan. // a colspan.

View File

@ -14,9 +14,8 @@
//#define DEBUG_SPANNING_CELL_SORTER //#define DEBUG_SPANNING_CELL_SORTER
SpanningCellSorter::SpanningCellSorter(nsIPresShell *aPresShell) SpanningCellSorter::SpanningCellSorter()
: mPresShell(aPresShell) : mState(ADDING)
, mState(ADDING)
, mSortedHashTable(nsnull) , mSortedHashTable(nsnull)
{ {
memset(mArray, 0, sizeof(mArray)); memset(mArray, 0, sizeof(mArray));

View File

@ -22,7 +22,7 @@ class nsIPresShell;
*/ */
class NS_STACK_CLASS SpanningCellSorter { class NS_STACK_CLASS SpanningCellSorter {
public: public:
SpanningCellSorter(nsIPresShell *aPresShell); SpanningCellSorter();
~SpanningCellSorter(); ~SpanningCellSorter();
struct Item { struct Item {
@ -44,7 +44,6 @@ public:
*/ */
Item* GetNext(PRInt32 *aColSpan); Item* GetNext(PRInt32 *aColSpan);
private: private:
nsIPresShell *mPresShell;
enum State { ADDING, ENUMERATING_ARRAY, ENUMERATING_HASH, DONE }; enum State { ADDING, ENUMERATING_ARRAY, ENUMERATING_HASH, DONE };
State mState; State mState;