Changes

Jump to: navigation, search

User:Egmetcalfe/Dead Code

7,507 bytes removed, 15:15, 9 April 2010
no edit summary
Code Size: 4, !
 
====nsCSSFontDesc nsCSSProps::LookupFontDesc(const nsACString_internal&)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=LookupFontDesc MXR Search] (Only the nsAString version is apparently used but what about [http://mxr.mozilla.org/mozilla-central/source/layout/style/test/TestCSSPropertyLookup.cpp#75 this line]?)
 
Code Size: 4
 
====nsCSSKeyword nsCSSKeywords::LookupKeyword(const nsACString_internal&)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=LookupKeyword MXR Search] (Only the nsAString version is apparently used but what about [http://mxr.mozilla.org/mozilla-central/source/layout/style/test/TestCSSPropertyLookup.cpp#145 this line]?)
 
Code Size: 7
 
====nsCSSValueGradientStop::nsCSSValueGradientStop(const nsCSSValueGradientStop&)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=nsCSSValueGradientStop MXR Search] (Probably not a good idea to remove this)
 
Code Size: 7
 
====nsCSSCornerSizes::nsCSSCornerSizes(const nsCSSCornerSizes&)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=nsCSSCornerSizes MXR Search] (Probably not a good idea to remove this)
 
Code Size: 13
 
====nsCSSValueListRect::nsCSSValueListRect(const nsCSSValueListRect&)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=nsCSSValueListRect MXR Search] (Probably not a good idea to remove this)
 
Code Size: 9
 
====void nsCSSValue::nsCSSValue(nsCSSValueGradient*)====
 
Code Size: 5, !
 
====void nsCSSValue::nsCSSValue(Image*)====
 
Code Size: 5, !
 
====void nsCSSValue::nsCSSValue(URL*)====
 
Code Size: 5, !
 
====void nsCSSValue::nsCSSValue(Array*,nsCSSUnit)====
 
Code Size: 5, !
 
====void nsCSSValue::nsCSSValue(float,nsCSSUnit)====
 
Code Size: 5, !
 
[http://mxr.mozilla.org/mozilla-central/search?string=nsCSSValue( nsCSSValue( MXR Search] (Only the no-argument and nsCSSUnit constructors are used)
 
====nsresult nsHTMLStyleSheet::GetLinkColor(nscolor&)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetLinkColor MXR Search]
 
Code Size: 8, !
 
====nsresult nsHTMLStyleSheet::GetActiveLinkColor(nscolor&)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetActiveLinkColor MXR Search]
 
Code Size: 8, !
 
====nsresult nsHTMLStyleSheet::GetVisitedLinkColor(nscolor&)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetVisitedLinkColor MXR Search]
 
Code Size: 8, !
 
====PRBool nsCSSPseudoClasses::IsPseudoClass(nsIAtom*)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=IsPseudoClass MXR Search]
 
Code Size: 3, !
 
====void nsCSSValue::SetRectIsAutoValue()====
 
[http://mxr.mozilla.org/mozilla-central/search?string=SetRectIsAutoValue MXR Search]
 
Code Size: 3, !
 
====PRBool nsCSSPseudoElements::IsPseudoElement(nsIAtom*)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=IsPseudoElement MXR Search] (One use in an NS_ASSERTION)
 
Code Size: 3
 
====nsresult nsCSSDeclaration::AppendComment(const nsAString_internal&)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z%5DAppendComment%5C%2528&regexp=on&case=on&find=&findi=&filter=%5E%5B%5E%5C0%5D*%2524&hitlimit=&tree=mozilla-central MXR Search]
 
Code Size: 2, !
 
===layout/generic===
 
====void nsFrameList::SortByContentOrder()====
 
[http://mxr.mozilla.org/mozilla-central/search?string=SortByContentOrder MXR Search] (This will take an nsTArray::Sort along with it too)
 
Code Size: 35 !
 
====nsIFrame* nsBlockFrame::GetTopBlockChild(nsPresContext*)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetTopBlockChild MXR Search]
 
Code Size: 34, !
 
====PRInt32 nsILineIterator::FindLineAt(nscoord)====
 
Code Size: 0 (pure virtual), !
 
====PRInt32 nsLineIterator::FindLineAt(nscoord)====
 
Code Size: 27, !
 
====PRInt32 nsTableRowGroupFrame::FindLineAt(nscoord)====
 
Code Size: 2, !
 
[http://mxr.mozilla.org/mozilla-central/search?string=FindLineAt MXR Search]
 
====nsLineBox* nsLineBox::FindLineContaining(nsLineList&,nsIFrame*,PRInt32*)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=FindLineContaining MXR Search]
 
Code Size: 18, !
 
====PRBool nsFrameList::ContainsFrameBefore(const nsIFrame*,const nsIFrame*)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=ContainsFrameBefore MXR Search]
 
Code Size: 10, !
 
====nsFramesetDrag::nsFramesetDrag(PRBool,PRInt32,PRInt32,nsHTMLFramesetFrame*)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=nsFramesetDrag MXR Search]
 
Code Size: 6, !
 
====void Area::GetHREF(nsAString_internal&)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetHREF MXR Search] (Pain to check but dead. Note that it's non-virtual from a non-derived class)
 
Code Size: 3, !
 
====nsRect nsIFrame::GetMarginRect()====
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetMarginRect MXR Search]
 
Code Size: 11, !
 
====PRBool nsIntervalSet::HasPoint(nscoord)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=HasPoint MXR Search]
 
Code Size: 10, !
 
====nsresult nsIFrame::Clip(nsDisplayListBuilder*,const nsDisplayListSet&,const nsDisplayListSet&,const nsRect&)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-z%5DClip%5C%2528%5B%5E%2529%5D&regexp=1&case=1 MXR Search]
 
Code Size: 4, !
 
====nsRect nsIFrame::GetScreenRectInAppUnitsExternal()====
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetScreenRectInAppUnitsExternal MXR Search]
 
Code Size: 3, !
 
====void* nsIFrame::GetPropertyExternal(nsIAtom*,nsresult*)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetPropertyExternal MXR Search] (taken out at some point)
 
Code Size: 3
 
===layout/tables===
 
====void nsTableOuterFrame::BalanceLeftRightCaption(PRUint8,const nsMargin&,const nsMargin&,nscoord&,nscoord&)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=BalanceLeftRightCaption MXR Search]
 
Code Size: 66, !
 
====PRBool nsCellMap::ColHasSpanningCells(PRInt32)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=ColHasSpanningCells MXR Search] (Called by nsTableCellMap::ColHasSpanningCells)
 
Code Size: 31, !
 
====PRBool nsTableFrame::ColHasSpanningCells(PRInt32)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=ColHasSpanningCells MXR Search]
 
Code Size: 11, !
 
====PRBool nsTableCellMap::ColHasSpanningCells(PRInt32)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=ColHasSpanningCells MXR Search] (Called by nsTableFrame::ColHasSpanningCells)
 
Code Size: 10, !
 
====PRBool nsTableCellMap::ColIsSpannedInto(PRInt32)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=ColIsSpannedInto MXR Search] (Called by nsTableFrame::ColIsSpannedInto)
 
Code Size: 31, !
 
====PRBool nsTableFrame::ColIsSpannedInto(PRInt32)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=ColIsSpannedInto MXR Search]
 
Code Size: 11, !
 
====PRBool nsCellMap::IsZeroColSpan(PRInt32,PRInt32)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=IsZeroColSpan MXR Search]
 
Code Size: 14, !
 
====void nsTableFrame::SetColumnWidth(PRInt32,nscoord)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=SetColumnWidth MXR Search]
 
Code Size: 17, !
 
====PRBool nsTableFrame::IsAutoWidth(PRBool*)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=IsAutoWidth MXR Search]
 
Code Size: 17, !
 
====PRInt32 nsTableFrame::GetEffectiveCOLSAttribute()====
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetEffectiveCOLSAttribute MXR Search]
 
Code Size: 9, !
 
====PRBool nsTableFrame::IsPctHeight(nsStyleContext*)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=IsPctHeight MXR Search]
 
Code Size: 8, !
 
===layout/forms===
 
====nsresult nsComboboxControlFrame::GetOptionSelected(PRInt32,PRBool*)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetOptionSelected MXR Search]
 
Code Size: 11, !
 
====nsresult nsListControlFrame::GetOptionSelected(PRInt32,PRBool*)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetOptionSelected MXR Search]
 
Code Size: 4, !
 
====nsresult nsISelectControlFrame::GetOptionSelected(PRInt32,PRBool*)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetOptionSelected MXR Search] (called by nsComboboxControlFrame::GetOptionSelected)
 
Code Size: 0 (pure virtual), !
 
====nsMargin nsButtonFrameRenderer::GetFullButtonBorderAndPadding()====
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetFullButtonBorderAndPadding MXR Search]
 
Code Size: 5, !
 
====nsMargin nsButtonFrameRenderer::GetButtonOutlineBorderAndPadding()====
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetButtonOutlineBorderAndPadding MXR Search]
 
Code Size: 3, !
 
===layout/mathml===
 
====nsresult nsMathMLFrame::SetEmbellishData(const nsEmbellishData&)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=SetEmbellishData MXR Search]
 
Code Size: 8, !
 
====nsresult nsMathMLFrame::SetEmbellishData(const nsEmbellishData&)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=SetEmbellishData MXR Search]
 
Code Size: 0 (pure virtual), !
 
====nsresult nsMathMLFrame::GetReference(nsPoint&)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetReference(&case=on MXR Search]
 
Code Size: 3, !
 
====nsresult nsIMathMLFrame::GetReference(nsPoint&)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetReference(&case=on MXR Search]
 
Code Size: 0 (pure virtual), !
 
====nsresult nsMathMLFrame::SetPresentationData(const nsPresentationData&)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=SetPresentationData MXR Search]
 
Code Size: 3, !
 
====nsresult nsIMathMLFrame::SetPresentationData(const nsPresentationData&)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=SetPresentationData MXR Search]
 
Code Size: 0 (pure virtual), !
===layout/inspector===
Note: according to comments in Init, that it "Prepares a gfxContext to draw on. Do not call this twice; if you want to get the gfxContext again use GetContext()", this probably shouldn't be removed.
 
===layout/generic===
 
====nsRect nsIFrame::GetScreenRectInAppUnitsExternal()====
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetScreenRectInAppUnitsExternal MXR Search] roc: may be used outside of tree
 
Code Size: 3
 
=== layout/style
 
====nsCSSFontDesc nsCSSProps::LookupFontDesc(const nsACString_internal&)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=LookupFontDesc MXR Search] (Only the nsAString version is apparently used but what about [http://mxr.mozilla.org/mozilla-central/source/layout/style/test/TestCSSPropertyLookup.cpp#75 this line]?)
 
Code Size: 4
 
====nsCSSKeyword nsCSSKeywords::LookupKeyword(const nsACString_internal&)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=LookupKeyword MXR Search] (Only the nsAString version is apparently used but what about [http://mxr.mozilla.org/mozilla-central/source/layout/style/test/TestCSSPropertyLookup.cpp#145 this line]?)
 
Code Size: 7
 
====nsCSSValueGradientStop::nsCSSValueGradientStop(const nsCSSValueGradientStop&)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=nsCSSValueGradientStop MXR Search] (Probably not a good idea to remove this)
 
Code Size: 7
 
====nsCSSCornerSizes::nsCSSCornerSizes(const nsCSSCornerSizes&)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=nsCSSCornerSizes MXR Search] (Probably not a good idea to remove this)
 
Code Size: 13
 
====nsCSSValueListRect::nsCSSValueListRect(const nsCSSValueListRect&)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=nsCSSValueListRect MXR Search] (Probably not a good idea to remove this)
 
Code Size: 9
 
====void nsCSSValue::nsCSSValue(nsCSSValueGradient*)====
 
Code Size: 5, !
 
====void nsCSSValue::nsCSSValue(Image*)====
 
Code Size: 5, !
 
====void nsCSSValue::nsCSSValue(URL*)====
 
Code Size: 5, !
 
====void nsCSSValue::nsCSSValue(Array*,nsCSSUnit)====
 
Code Size: 5, !
 
====void nsCSSValue::nsCSSValue(float,nsCSSUnit)====
 
Code Size: 5, !
 
[http://mxr.mozilla.org/mozilla-central/search?string=nsCSSValue( nsCSSValue( MXR Search]
 
dbaron: maintain the correspondence between setters and constructors
1
edit

Navigation menu