From 3f6c44858d7b1df0dffceeb68dd16d78f2cc0dec Mon Sep 17 00:00:00 2001 From: Benjamin Smedberg Date: Mon, 13 Jul 2009 12:31:32 -0400 Subject: [PATCH] Bug 503376 - Remove unused CalcAutoMargin function which stopped being used in bug 478614, r=bernd --- layout/tables/nsTableOuterFrame.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/layout/tables/nsTableOuterFrame.cpp b/layout/tables/nsTableOuterFrame.cpp index 771c1edc1135..960b8a17b329 100644 --- a/layout/tables/nsTableOuterFrame.cpp +++ b/layout/tables/nsTableOuterFrame.cpp @@ -471,21 +471,6 @@ nsTableOuterFrame::GetMargin(nsPresContext* aPresContext, aMargin = childRS.mComputedMargin; } -static -nscoord CalcAutoMargin(nscoord aAutoMargin, - nscoord aOppositeMargin, - nscoord aContainBlockSize, - nscoord aFrameSize) -{ - nscoord margin; - if (NS_AUTOMARGIN == aOppositeMargin) - margin = (aContainBlockSize - aFrameSize) / 2; - else { - margin = aContainBlockSize - aFrameSize - aOppositeMargin; - } - return PR_MAX(0, margin); -} - static nsSize GetContainingBlockSize(const nsHTMLReflowState& aOuterRS) {