Skip to content

Commit

Permalink
Bug 774040 - remove unused field. r=roc.
Browse files Browse the repository at this point in the history
  • Loading branch information
cixtor committed Jul 15, 2012
1 parent 03491b9 commit f6dd14e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion layout/tables/BasicTableLayoutStrategy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ BasicTableLayoutStrategy::ComputeColumnIntrinsicWidths(nsRenderingContext* aRend
nsTableCellMap *cellMap = tableFrame->GetCellMap();

mozilla::AutoStackArena arena;
SpanningCellSorter spanningCells(tableFrame->PresContext()->PresShell());
SpanningCellSorter spanningCells;

// Loop over the columns to consider the columns and cells *without*
// a colspan.
Expand Down
5 changes: 2 additions & 3 deletions layout/tables/SpanningCellSorter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@

//#define DEBUG_SPANNING_CELL_SORTER

SpanningCellSorter::SpanningCellSorter(nsIPresShell *aPresShell)
: mPresShell(aPresShell)
, mState(ADDING)
SpanningCellSorter::SpanningCellSorter()
: mState(ADDING)
, mSortedHashTable(nsnull)
{
memset(mArray, 0, sizeof(mArray));
Expand Down
3 changes: 1 addition & 2 deletions layout/tables/SpanningCellSorter.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class nsIPresShell;
*/
class NS_STACK_CLASS SpanningCellSorter {
public:
SpanningCellSorter(nsIPresShell *aPresShell);
SpanningCellSorter();
~SpanningCellSorter();

struct Item {
Expand All @@ -44,7 +44,6 @@ class NS_STACK_CLASS SpanningCellSorter {
*/
Item* GetNext(PRInt32 *aColSpan);
private:
nsIPresShell *mPresShell;

enum State { ADDING, ENUMERATING_ARRAY, ENUMERATING_HASH, DONE };
State mState;
Expand Down

0 comments on commit f6dd14e

Please sign in to comment.