Difference between revisions of "User:Egmetcalfe/Dead Code"
Egmetcalfe (talk | contribs) (→nsresult nsCSSDeclaration::AppendComment(const nsAString_internal&)) |
Egmetcalfe (talk | contribs) (→void* nsIFrame::GetPropertyExternal(nsIAtom*,nsresult*)) |
||
Line 1,158: | Line 1,158: | ||
====void* nsIFrame::GetPropertyExternal(nsIAtom*,nsresult*)==== | ====void* nsIFrame::GetPropertyExternal(nsIAtom*,nsresult*)==== | ||
− | [http://mxr.mozilla.org/mozilla-central/search?string=GetPropertyExternal MXR Search] | + | [http://mxr.mozilla.org/mozilla-central/search?string=GetPropertyExternal MXR Search] (taken out at some point) |
Code Size: 3 | Code Size: 3 |
Revision as of 11:16, 31 March 2010
Note: Code Size is a count of the number of GIMPLE instructions during pass cfg.
Contents
- 1 Unconditionally Dead
- 1.1 content/base
- 1.1.1 PRBool nsParserUtils::GetQuotedAttrNameAt(const nsString&,PRUint32,nsAString_internal&)
- 1.1.2 nsIContent* nsContentUtils::FindFirstChildWithResolvedTag(nsIContent*,PRInt32,nsIAtom*)
- 1.1.3 nsIDocShell* nsContentUtils::GetDocShellFromCaller()
- 1.1.4 nsIContent* nsContentUtils::GetReferencedElement(nsIURI*,nsIContent*)
- 1.1.5 void nsXMLNameSpaceMap::RemovePrefix(nsIAtom*)
- 1.1.6 nsresult nsPlainTextSerializer::WillProcessTokens()
- 1.1.7 nsresult nsAttrAndChildArray::SetAttr(nsIAtom*,const nsAString_internal&)
- 1.2 content/html
- 1.2.1 void nsGenericHTMLElement::GetHrefURIToMutate(nsIURI**)
- 1.2.2 nsresult nsGenericHTMLElement::SetFloatAttr(nsIAtom*,float)
- 1.2.3 nsresult nsGenericHTMLElement::GetFloatAttr(nsIAtom*,float,float*)
- 1.2.4 nsresult nsHTMLDNSPrefetch::PrefetchHigh(nsAString_internal&)
- 1.2.5 nsresult nsHTMLDNSPrefetch::PrefetchHigh(Link*)
- 1.2.6 nsresult nsHTMLDNSPrefetch::PrefetchMedium(nsAString_internal&)
- 1.2.7 nsresult nsHTMLDNSPrefetch::PrefetchMedium(Link*)
- 1.2.8 PRBool SinkContext::IsAncestorContainer(nsHTMLTag)
- 1.2.9 nsresult nsHTMLFragmentContentSink::AddTextToContent(nsIContent*,const nsAString_internal&)
- 1.2.10 nsresult nsHTMLDocument::GetLinkColor(nsAString& aLinkColor)
- 1.3 content/media
- 1.4 content/events
- 1.5 content/xslt
- 1.5.1 MBool txDouble::isNeg(double)
- 1.5.2 PRInt32 txNamespaceMap::lookupNamespace(const nsAString_internal&)
- 1.5.3 txXPathNode* txXPathNodeUtils::getDocument(const txXPathNode&)
- 1.5.4 PRBool txEarlyEvalContext::isStripSpaceAllowed(const txXPathNode&)
- 1.5.5 PRBool txExecutionState::isStripSpaceAllowed(const txXPathNode&)
- 1.5.6 PRBool txXSLTParamContext::isStripSpaceAllowed(const txXPathNode&)
- 1.5.7 nsresult txResultRecycler::getNodeSet(const txXPathNode&,txNodeSet**)
- 1.6 content/xul
- 1.7 content/xbl
- 1.8 content/canvas
- 1.8.1 PRUint32 mozilla::SimpleBuffer::ElementSize()
- 1.8.2 void mozilla::SimpleBuffer::Prepare(PRUint32,PRUint32,PRUint32)
- 1.8.3 void mozilla::SimpleBuffer::EnsureCapacity(PRBool,PRUint32)
- 1.8.4 PRBool mozilla::SimpleBuffer::InitFromJSArray(PRUint32,PRUint32,JSContext*,JSObject*,jsuint)
- 1.8.5 void mozilla::CanvasUtils::LogMessagef(const char*)
- 1.8.6 void mozilla::CanvasUtils::LogMessage(const nsCString&)
- 1.9 modules/libreg
- 1.9.1 REGERR NR_RegIsWritable(HREG)
- 1.9.2 REGERR VR_PackRegistry(void*,nr_RegPackCallbackFunc)
- 1.9.3 REGERR NR_RegEnumEntries(HREG,RKEY,REGENUM*,char*,uint32,REGINFO*)
- 1.9.4 REGERR VR_UninstallEnumSharedFiles(char*,REGENUM*,char*,uint32)
- 1.9.5 REGERR NR_RegPack(HREG,void*,nr_RegPackCallbackFunc)
- 1.9.6 REGERR VR_PackRegistry(void*,nr_RegPackCallbackFunc)
- 1.10 modules/libpref
- 1.11 modules/plugin
- 1.12 accessible
- 1.12.1 void nsCoreUtils::GetElementsHavingIDRefsAttrImpl(nsIContent*,nsCString&,nsIAtom*,nsIMutableArray*)
- 1.12.2 void nsCoreUtils::GetElementsHavingIDRefsAttr(nsIContent*,nsIContent*,nsIAtom*,nsIArray**)
- 1.12.3 nsresult nsRelUtils::AddTargetFromChildrenHavingIDRefsAttr(PRUint32,nsIAccessibleRelation**,nsIContent*,nsIContent*,nsIAtom*)
- 1.12.4 already_AddRefed nsAccUtils::QueryAccessibleTable(nsIAccessibleTable*)
- 1.12.5 already_AddRefed nsCoreUtils::GetLastSensibleColumn(nsITreeBoxObject*)
- 1.12.6 PRBool nsFontSizeTextAttr::GetValueFor(nsIDOMElement*,nscoord*)
- 1.12.7 PRBool nsBGColorTextAttr::GetValueFor(nsIDOMElement*,nscolor*)
- 1.12.8 PRBool nsFontWeightTextAttr::GetValueFor(nsIDOMElement*,PRInt32*)
- 1.12.9 PRBool nsTextAttr::GetValue(nsAString_internal&,int)
- 1.12.10 void nsCSSTextAttr::Format(const nsAutoString&,nsAString_internal&)
- 1.12.11 void nsTextAttr::Format(const nsAutoString&,nsAString_internal&)
- 1.12.12 void nsLangTextAttr::Format(const nsAutoString&,nsAString_internal&)
- 1.13 embedding/components/windowwatcher
- 1.14 modules/libpref
- 1.15 gfx/thebes/public
- 1.16 gfx/src/thebes
- 1.16.1 nsresult nsThebesRenderingContext::GetTextDimensions(const PRUnichar*,PRInt32,PRInt32,PRInt32*,PRInt32,nsTextDimensions&,PRInt32&,nsTextDimensions&,PRInt32*)
- 1.16.2 nsresult nsThebesRenderingContext::GetTextDimensionsInternal(const PRUnichar*,PRInt32,PRInt32,PRInt32*,PRInt32,nsTextDimensions&,PRInt32&,nsTextDimensions&,PRInt32*)
- 1.16.3 nsresult nsThebesRenderingContext::DrawEllipse(const nsRect&)
- 1.17 modules/libpr0n
- 1.18 editor
- 1.19 security/manager/ssl
- 1.19.1 nsresult nsCMSMessage::CommonAsyncVerifySignature(nsISMimeVerificationListener*,unsigned char*,PRUint32)
- 1.19.2 nsresult nsCMSMessage::AsyncVerifyDetachedSignature(nsISMimeVerificationListener*,unsigned char*,PRUint32)
- 1.19.3 nsresult nsCMSMessage::AsyncVerifySignature(nsISMimeVerificationListener*)
- 1.19.4 nsCOMPtr& nsCOMPtr::operator=(nsICMSMessage*)
- 1.19.5 nsCOMPtr& nsCOMPtr::operator=(nsISMimeVerificationListener*)
- 1.20 intl
- 1.20.1 nsresult nsCaseConversionImp2::ToTitle(const PRUnichar*,PRUnichar*,PRUint32,PRBool)
- 1.20.2 PRUint16* MapperToCCMap(nsICharRepresentable*)
- 1.20.3 void nsBufferDecoderSupport::DoubleBuffer()
- 1.20.4 nsresult nsDetectionAdaptor::ProcessTokens()
- 1.20.5 nsresult nsDetectionAdaptor::WillAddToken(CToken&)
- 1.20.6 nsDebugDetector::nsDebugDetector(nsDebugDetectorSel)
- 1.21 dom
- 1.22 parser
- 1.22.1 void nsCParserNode::SetGenericState(PRBool)
- 1.22.2 PRBool nsCParserNode::GetGenericState()
- 1.22.3 const nsAString_internal& nsCParserNode::GetTagName()
- 1.22.4 void nsCParserNode::GetSource(nsString&)
- 1.22.5 void nsCParserStartNode::GetSource(nsString&)
- 1.22.6 nsTagEntry* nsEntryStack::PopEntry()
- 1.22.7 nsTagEntry* nsDTDContext::PopEntry()
- 1.22.8 nsCParserNode* nsDTDContext::PopStyle()
- 1.22.9 nsTagEntry* nsDTDContext::LastEntry()
- 1.22.10 nsHTMLTag nsEntryStack::First()
- 1.22.11 nsHTMLTag nsDTDContext::First()
- 1.23 ipc
- 1.24 widget
- 1.25 extensions
- 1.26 view
- 1.26.1 nsIntPoint nsIView::GetScreenPosition()
- 1.26.2 nsresult nsViewManager::GetViewObserver(nsIViewObserver*&)
- 1.26.3 void nsView::SetPositionIgnoringChildWidgets(nscoord,nscoord)
- 1.26.4 nsresult nsViewManager::MoveViewBy(nsIView*,nscoord,nscoord)
- 1.26.5 nsresult nsViewManager::InsertChild(nsIView*,nsIView*,PRInt32)
- 1.26.6 PRBool nsIView::ExternalIsRoot()
- 1.27 layout/xul
- 1.27.1 void nsBoxFrame::FireDOMEventSynch(const nsAString_internal&,nsIContent*)
- 1.27.2 void nsGridRow::MarkDirty(nsBoxLayoutState&)
- 1.27.3 void nsBoxLayout::GetParentLayout(nsIBox*,nsIBoxLayout**)
- 1.27.4 nsGridRow* nsGrid::GetRows()
- 1.27.5 nsGridRow* nsGrid::GetColumns()
- 1.27.6 nsresult nsMenuFrame::IsActive(PRBool&)
- 1.27.7 void nsBox::AddMargin(nsSize&)
- 1.28 layout/base
- 1.28.1 nsIFrame* nsLayoutUtils::GetClosestCommonAncestorViaPlaceholders(nsIFrame*,nsIFrame*,nsIFrame*)
- 1.28.2 nsBidi::nsBidi(PRUint32,PRUint32)
- 1.28.3 nsIFrame* nsFrameManager::GetCanvasFrame()
- 1.28.4 nsresult nsBidiPresUtils::GetBidiEngine(nsBidi**)
- 1.28.5 void nsDisplayList::DeleteBottom()
- 1.28.6 void nsFrameManager::ClearUndisplayedContentMap()
- 1.28.7 gfxContext* nsContextBoxBlur::GetContext()
- 1.28.8 PRInt32 nsIPresShell::GetVerifyReflowFlags()
- 1.28.9 void nsIPresShell::SetVerifyReflowEnable(PRBool)
- 1.28.10 PRBool nsIPresShell::GetVerifyReflowEnable()
- 1.28.11 PRBool PresShell::nsDelayedEvent::Equals(nsPIDOMEventTarget*,PRUint32)
- 1.29 layout/style
- 1.29.1 nsresult CSSLoaderImpl::StopLoadingSheet(nsIURI*)
- 1.29.2 StopLoadingSheetsByURIClosure::StopLoadingSheetsByURIClosure(nsIURI*,nsTArray&)
- 1.29.3 PRBool langMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)
- 1.29.4 const nsString* RuleProcessorData::GetLang()
- 1.29.5 PRBool mozSystemMetricMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)
- 1.29.6 void nsCSSCornerSizes::SetAllCornersTo(const nsCSSValue&)
- 1.29.7 nsCSSProperty nsCSSProps::LookupProperty(const nsACString_internal&)
- 1.29.8 nsresult CSSLoaderImpl::GetPreferredSheet(nsAString_internal&)
- 1.29.9 nsCSSFontDesc nsCSSProps::LookupFontDesc(const nsACString_internal&)
- 1.29.10 nsCSSKeyword nsCSSKeywords::LookupKeyword(const nsACString_internal&)
- 1.29.11 nsCSSValueGradientStop::nsCSSValueGradientStop(const nsCSSValueGradientStop&)
- 1.29.12 nsCSSCornerSizes::nsCSSCornerSizes(const nsCSSCornerSizes&)
- 1.29.13 nsCSSValueListRect::nsCSSValueListRect(const nsCSSValueListRect&)
- 1.29.14 void nsCSSValue::nsCSSValue(nsCSSValueGradient*)
- 1.29.15 void nsCSSValue::nsCSSValue(Image*)
- 1.29.16 void nsCSSValue::nsCSSValue(URL*)
- 1.29.17 void nsCSSValue::nsCSSValue(Array*,nsCSSUnit)
- 1.29.18 void nsCSSValue::nsCSSValue(float,nsCSSUnit)
- 1.29.19 nsresult nsHTMLStyleSheet::GetLinkColor(nscolor&)
- 1.29.20 nsresult nsHTMLStyleSheet::GetActiveLinkColor(nscolor&)
- 1.29.21 nsresult nsHTMLStyleSheet::GetVisitedLinkColor(nscolor&)
- 1.29.22 PRBool nsCSSPseudoClasses::IsPseudoClass(nsIAtom*)
- 1.29.23 void nsCSSValue::SetRectIsAutoValue()
- 1.29.24 PRBool nsCSSPseudoElements::IsPseudoElement(nsIAtom*)
- 1.29.25 nsresult nsCSSDeclaration::AppendComment(const nsAString_internal&)
- 1.29.26 PRInt32 RuleProcessorData::GetNthIndex(PRBool,PRBool,PRBool)
- 1.29.27 PRBool edgeOfTypeMatches(RuleProcessorData&,PRBool,PRBool,PRBool)
- 1.29.28 PRBool nthChildGenericMatches(RuleProcessorData&,PRBool,nsPseudoClassList*,PRBool,PRBool)
- 1.29.29 PRBool edgeChildMatches(RuleProcessorData&,PRBool,PRBool,PRBool)
- 1.29.30 PRBool onlyOfTypeMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)
- 1.29.31 PRBool lastOfTypeMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)
- 1.29.32 PRBool firstOfTypeMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)
- 1.29.33 PRBool nthLastOfTypeMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)
- 1.29.34 PRBool nthOfTypeMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)
- 1.29.35 PRBool nthLastChildMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)
- 1.29.36 PRBool nthLastChildMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)
- 1.29.37 PRBool nthChildMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)
- 1.29.38 PRBool onlyChildMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)
- 1.29.39 PRBool lastChildMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)
- 1.29.40 PRBool firstChildMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)
- 1.30 layout/generic
- 1.30.1 void nsFrameList::SortByContentOrder()
- 1.30.2 nsIFrame* nsBlockFrame::GetTopBlockChild(nsPresContext*)
- 1.30.3 PRInt32 nsILineIterator::FindLineAt(nscoord)
- 1.30.4 PRInt32 nsLineIterator::FindLineAt(nscoord)
- 1.30.5 PRInt32 nsTableRowGroupFrame::FindLineAt(nscoord)
- 1.30.6 nsLineBox* nsLineBox::FindLineContaining(nsLineList&,nsIFrame*,PRInt32*)
- 1.30.7 PRBool nsFrameList::ContainsFrameBefore(const nsIFrame*,const nsIFrame*)
- 1.30.8 nsFramesetDrag::nsFramesetDrag(PRBool,PRInt32,PRInt32,nsHTMLFramesetFrame*)
- 1.30.9 void Area::GetHREF(nsAString_internal&)
- 1.30.10 nsRect nsIFrame::GetMarginRect()
- 1.30.11 PRBool nsIntervalSet::HasPoint(nscoord)
- 1.30.12 nsresult nsIFrame::Clip(nsDisplayListBuilder*,const nsDisplayListSet&,const nsDisplayListSet&,const nsRect&)
- 1.30.13 nsRect nsIFrame::GetScreenRectInAppUnitsExternal()
- 1.30.14 void* nsIFrame::GetPropertyExternal(nsIAtom*,nsresult*)
- 1.31 layout/tables
- 1.31.1 void nsTableOuterFrame::BalanceLeftRightCaption(PRUint8,const nsMargin&,const nsMargin&,nscoord&,nscoord&)
- 1.31.2 PRBool nsCellMap::ColHasSpanningCells(PRInt32)
- 1.31.3 PRBool nsTableFrame::ColHasSpanningCells(PRInt32)
- 1.31.4 PRBool nsTableCellMap::ColHasSpanningCells(PRInt32)
- 1.31.5 PRBool nsTableCellMap::ColIsSpannedInto(PRInt32)
- 1.31.6 PRBool nsTableFrame::ColIsSpannedInto(PRInt32)
- 1.31.7 PRBool nsCellMap::IsZeroColSpan(PRInt32,PRInt32)
- 1.31.8 void nsTableFrame::SetColumnWidth(PRInt32,nscoord)
- 1.31.9 PRBool nsTableFrame::IsAutoWidth(PRBool*)
- 1.31.10 PRInt32 nsTableFrame::GetEffectiveCOLSAttribute()
- 1.31.11 PRBool nsTableFrame::IsPctHeight(nsStyleContext*)
- 1.32 layout/forms
- 1.32.1 nsresult nsComboboxControlFrame::GetOptionSelected(PRInt32,PRBool*)
- 1.32.2 nsresult nsListControlFrame::GetOptionSelected(PRInt32,PRBool*)
- 1.32.3 nsresult nsISelectControlFrame::GetOptionSelected(PRInt32,PRBool*)
- 1.32.4 nsMargin nsButtonFrameRenderer::GetFullButtonBorderAndPadding()
- 1.32.5 nsMargin nsButtonFrameRenderer::GetButtonOutlineBorderAndPadding()
- 1.33 layout/mathml
- 1.33.1 nsresult nsMathMLFrame::SetEmbellishData(const nsEmbellishData&)
- 1.33.2 nsresult nsMathMLFrame::SetEmbellishData(const nsEmbellishData&)
- 1.33.3 nsresult nsMathMLFrame::GetReference(nsPoint&)
- 1.33.4 nsresult nsIMathMLFrame::GetReference(nsPoint&)
- 1.33.5 nsresult nsMathMLFrame::SetPresentationData(const nsPresentationData&)
- 1.33.6 nsresult nsIMathMLFrame::SetPresentationData(const nsPresentationData&)
- 1.34 layout/inspector
- 1.35 xpcom/components
- 1.36 xpcom/base
- 1.37 nsresult nsTraceRefcntImpl::LogAddRef(void*,nsrefcnt,const char*,PRUint32) et al
- 1.1 content/base
- 2 Bugs/Strangeness
Unconditionally Dead
content/base
PRBool nsParserUtils::GetQuotedAttrNameAt(const nsString&,PRUint32,nsAString_internal&)
Declaration Definition MXR Search *
Code Size: 96, Static method
nsIContent* nsContentUtils::FindFirstChildWithResolvedTag(nsIContent*,PRInt32,nsIAtom*)
Declaration Definition MXR Search *
Code Size: 92, Static method
nsIDocShell* nsContentUtils::GetDocShellFromCaller()
Declaration Definition MXR Search *
Code Size: 33, Static method
nsIContent* nsContentUtils::GetReferencedElement(nsIURI*,nsIContent*)
Code Size: 6, Static method
void nsXMLNameSpaceMap::RemovePrefix(nsIAtom*)
Declaration Definition MXR Search *
Code Size: 3, NS_HIDDEN_
nsresult nsPlainTextSerializer::WillProcessTokens()
MXR Search (forgot to include this in original patch)
Code Size: 2
nsresult nsAttrAndChildArray::SetAttr(nsIAtom*,const nsAString_internal&)
Run this search. Save page to file. grep for lines with only one comma: grep "^[^,]*,[^,]*$"
Code Size: 71
content/html
void nsGenericHTMLElement::GetHrefURIToMutate(nsIURI**)
Code Size: 3
nsresult nsGenericHTMLElement::SetFloatAttr(nsIAtom*,float)
Code Size: 6
MXR Search (One use in a dead macro) *
nsresult nsGenericHTMLElement::GetFloatAttr(nsIAtom*,float,float*)
MXR Search (One use in a dead macro) *
Code Size: 15
nsresult nsHTMLDNSPrefetch::PrefetchHigh(nsAString_internal&)
Code Size: 3
nsresult nsHTMLDNSPrefetch::PrefetchHigh(Link*)
Code Size: 3
nsresult nsHTMLDNSPrefetch::PrefetchMedium(nsAString_internal&)
Code Size: 3
nsresult nsHTMLDNSPrefetch::PrefetchMedium(Link*)
Code Size: 3
PRBool SinkContext::IsAncestorContainer(nsHTMLTag)
Code Size: 13
nsresult nsHTMLFragmentContentSink::AddTextToContent(nsIContent*,const nsAString_internal&)
Code Size: 26
nsresult nsHTMLDocument::GetLinkColor(nsAString& aLinkColor)
MXR Search (Discovered by accident when verifying nsHTMLStyleSheet::GetLinkColor)
Code Size: 12 LOC (nevermind: it's scriptable)
content/media
nsresult nsMediaCacheStream::ReadFromCache(char*,PRInt64,PRInt64)
Code Size: 82
content/events
nsresult nsPrivateTextRange::SetRangeType(PRUint16)
Code Size: 3
nsresult nsPrivateTextRange::SetRangeEnd(PRUint16)
Code Size: 3
nsresult nsPrivateTextRange::SetRangeStart(PRUint16)
Code Size: 3
content/xslt
MBool txDouble::isNeg(double)
Code Size: 5
PRInt32 txNamespaceMap::lookupNamespace(const nsAString_internal&)
Code Size: 8
Note: Only lookupNamespace(nsIAtom*) is used
txXPathNode* txXPathNodeUtils::getDocument(const txXPathNode&)
Code Size: 11
PRBool txEarlyEvalContext::isStripSpaceAllowed(const txXPathNode&)
Code Size: 2
PRBool txExecutionState::isStripSpaceAllowed(const txXPathNode&)
Code Size: 6
PRBool txXSLTParamContext::isStripSpaceAllowed(const txXPathNode&)
Code Size: 2
Note: Difficult to check but all PRBool isStripSpaceAllowed functions are dead. There are a number of MBool isStripSpaceAllowed functions which are not, however.
nsresult txResultRecycler::getNodeSet(const txXPathNode&,txNodeSet**)
Code Size: 29
content/xul
PRBool TestNode::HasAncestor(const ReteNode*)
Code Size: 11
PRBool nsXULDocument::ContextStack::IsInsideXULTemplate()
Code Size: 16
content/xbl
nsCOMArray* nsXBLPrototypeBinding::GetStyleSheets()
Code Size: 6
content/canvas
PRUint32 mozilla::SimpleBuffer::ElementSize()
Code Size: 26
void mozilla::SimpleBuffer::Prepare(PRUint32,PRUint32,PRUint32)
Code Size: 9
void mozilla::SimpleBuffer::EnsureCapacity(PRBool,PRUint32)
Code Size: 19
PRBool mozilla::SimpleBuffer::InitFromJSArray(PRUint32,PRUint32,JSContext*,JSObject*,jsuint)
Code Size: 127
Note: SimpleBuffer has been removed in a recent revision
void mozilla::CanvasUtils::LogMessagef(const char*)
Code Size: 24
void mozilla::CanvasUtils::LogMessage(const nsCString&)
MXR Search Difficult to verify
Code Size: 26
modules/libreg
REGERR NR_RegIsWritable(HREG)
Code Size: 18
REGERR VR_PackRegistry(void*,nr_RegPackCallbackFunc)
Code Size: 9
Path Info: VR_UninstallEnumSharedFiles calls NR_RegEnumEntries
REGERR NR_RegEnumEntries(HREG,RKEY,REGENUM*,char*,uint32,REGINFO*)
Code Size: 60
Code Size: 57
Note: NR_RegEnumEntries is called by nr_addNodesToNewReg which is #ifdef RESURRECT_LATER here http://mxr.mozilla.org/mozilla-central/source/modules/libreg/src/reg.c#3650 (with a comment saying resurrect after mozilla 1)
Path Info: VR_PackRegistry calls NR_RegPack
REGERR NR_RegPack(HREG,void*,nr_RegPackCallbackFunc)
Code Size: 2
REGERR VR_PackRegistry(void*,nr_RegPackCallbackFunc)
Code Size: 9
modules/libpref
nsresult PREF_GetCharPref(const char*,char*,int*,PRBool)
Code Size: 47
modules/plugin
bool mozilla::plugins::parent::::_tostring(NPObject*,NPVariant*)
Code Size: 7
accessible
Path info: AddTargetFromChildrenHavingIDRefsAttr calls GetElementsHavingIDRefsAttr which calls GetElementsHavingIDRefsAttrImpl.
void nsCoreUtils::GetElementsHavingIDRefsAttrImpl(nsIContent*,nsCString&,nsIAtom*,nsIMutableArray*)
Code Size: 42
void nsCoreUtils::GetElementsHavingIDRefsAttr(nsIContent*,nsIContent*,nsIAtom*,nsIArray**)
Code Size: 0? Really?
nsresult nsRelUtils::AddTargetFromChildrenHavingIDRefsAttr(PRUint32,nsIAccessibleRelation**,nsIContent*,nsIContent*,nsIAtom*)
Code Size: 52
already_AddRefed nsAccUtils::QueryAccessibleTable(nsIAccessibleTable*)
Code Size: 7
already_AddRefed nsCoreUtils::GetLastSensibleColumn(nsITreeBoxObject*)
Code Size: 40
PRBool nsFontSizeTextAttr::GetValueFor(nsIDOMElement*,nscoord*)
Code Size: 8
PRBool nsBGColorTextAttr::GetValueFor(nsIDOMElement*,nscolor*)
Code Size: 7
PRBool nsFontWeightTextAttr::GetValueFor(nsIDOMElement*,PRInt32*)
Code Size: 8
Note: A number of calls to GetValueFor functions are made where the second parameter has generic type ie T blah.
Path info: GetValue calls nsCSSTextAttr::Format
PRBool nsTextAttr::GetValue(nsAString_internal&,int)
To verify run this search then grep for all lines that contain at least two commas
Code Size: 26
Note: Must also remove from nsITextAttr
These are too difficult too verify:
void nsCSSTextAttr::Format(const nsAutoString&,nsAString_internal&)
Code Size: 3
void nsTextAttr::Format(const nsAutoString&,nsAString_internal&)
Code Size: 0
void nsLangTextAttr::Format(const nsAutoString&,nsAString_internal&)
Code Size: 7
embedding/components/windowwatcher
nsIScriptGlobalObject* nsWWJSUtils::GetStaticScriptGlobal(JSContext*,JSObject*)
Declaration Definition MXR Search
Code Size: 45, Static method
nsIScriptContext* nsWWJSUtils::GetStaticScriptContext(JSContext*,JSObject*)
Declaration Definition MXR Search
Code Size: 10, Static method
modules/libpref
nsresult PREF_GetCharPref(const char*,char*,int*,PRBool)
Code Size: 47
gfx/thebes/public
Path info: MapCharToGlyph calls MapCharToGlyphFormat4
PRUint32 gfxFontUtils::MapCharToGlyphFormat4(const PRUint8*,PRUnichar)
Declaration Definition MXR Search
Code Size: 92, Static method, class marked THEBES_API
PRUint32 gfxFontUtils::MapCharToGlyph(PRUint8*,PRUint32,PRUnichar)
Declaration Definition MXR Search
Code Size: 11, Static method, class marked THEBES_API
gfx/src/thebes
Path info: GetTextDimensions calls GetTextDimensionsInternal
nsresult nsThebesRenderingContext::GetTextDimensions(const PRUnichar*,PRInt32,PRInt32,PRInt32*,PRInt32,nsTextDimensions&,PRInt32&,nsTextDimensions&,PRInt32*)
Code Size: 56
nsresult nsThebesRenderingContext::GetTextDimensionsInternal(const PRUnichar*,PRInt32,PRInt32,PRInt32*,PRInt32,nsTextDimensions&,PRInt32&,nsTextDimensions&,PRInt32*)
Code Size: 2
Note: The 9 argument versions of these functions are not called. The same functions may be removed from nsIThebesFontMetrics, nsThebesFontMetrics and nsIThebesRenderingContext
nsresult nsThebesRenderingContext::DrawEllipse(const nsRect&)
Code Size: 10
Note: 1-arg func never used. Must be removed from nsIThebesRenderingContext as well
modules/libpr0n
PRUint32 imgFrame::GetImageBytesPerRow()
Declaration Definition MXR Search
Code Size: 11
PRInt32 imgFrame::GetHeight()
Declaration Definition MXR Search (Dead, but a pain to check)
Code Size: 2
PRInt32 imgFrame::GetWidth()
Declaration Definition MXR Search (Dead, but a pain to check)
Code Size: 2
PRInt32 imgFrame::GetY()
Declaration Definition MXR Search (impossible to check)
Code Size: 2
PRInt32 imgFrame::GetX()
Declaration Definition MXR Search (impossible to check)
Code Size: 2
editor
nsresult nsHTMLCSSUtils::RemoveCSSProperty(nsIDOMElement*,const nsAString_internal&)
Code Size: 28
security/manager/ssl
Path Info:
CommonAsyncVerifySignature is called by AsyncVerifySignature and AsyncVerifyDetachedSignature.
nsresult nsCMSMessage::CommonAsyncVerifySignature(nsISMimeVerificationListener*,unsigned char*,PRUint32)
Code Size: 43
nsresult nsCMSMessage::AsyncVerifyDetachedSignature(nsISMimeVerificationListener*,unsigned char*,PRUint32)
Code Size: 6
nsresult nsCMSMessage::AsyncVerifySignature(nsISMimeVerificationListener*)
Code Size: 3
Also Note: AsyncVerifySignature is the only caller of these two operators in mozilla/xpcom/glue:
nsCOMPtr& nsCOMPtr::operator=(nsICMSMessage*)
Code Size: 5
nsCOMPtr& nsCOMPtr::operator=(nsISMimeVerificationListener*)
Code Size: 5
intl
nsresult nsCaseConversionImp2::ToTitle(const PRUnichar*,PRUnichar*,PRUint32,PRBool)
Code Size: 42
Note: Must also be removed from nsICaseConversion
PRUint16* MapperToCCMap(nsICharRepresentable*)
Code Size: 15
void nsBufferDecoderSupport::DoubleBuffer()
Code Size: 19
nsresult nsDetectionAdaptor::ProcessTokens()
Code Size: 2
nsresult nsDetectionAdaptor::WillAddToken(CToken&)
Code Size: 2
Note: ProcessTokens and WillAddTokens must be removed from nsIParserFilter as well.
nsDebugDetector::nsDebugDetector(nsDebugDetectorSel)
Code Size: 10
dom
nsresult nsIScriptGlobalObject::HandleScriptError(nsScriptErrorEvent*,nsEventStatus*)
Code Size: 3
parser
void nsCParserNode::SetGenericState(PRBool)
Code Size: 3
PRBool nsCParserNode::GetGenericState()
Code Size: 3
const nsAString_internal& nsCParserNode::GetTagName()
Code Size: 3
void nsCParserNode::GetSource(nsString&)
Code Size: 22
void nsCParserStartNode::GetSource(nsString&)
Code Size: 35
Note: pure virtual declarations of SetGenericState, GetGenericState, GetTagName, and GetSource must be removed from nsIParserNode as well. Although tough to check, all one argument GetSource methods (that are used) belong to classes not derived from nsIParserNode.
Path Info: nsDTDContext::PopEntry() calls nsEntryStack::PopEntry()
nsTagEntry* nsEntryStack::PopEntry()
Code Size: 7
nsTagEntry* nsDTDContext::PopEntry()
Code Size: 7
nsCParserNode* nsDTDContext::PopStyle()
Code Size: 18
nsTagEntry* nsDTDContext::LastEntry()
Code Size: 6
nsHTMLTag nsEntryStack::First()
Code Size: 7
nsHTMLTag nsDTDContext::First()
Code Size: 4
Note: First is impossible to verify using MXR but the likelihood of a false positive is low here (since the method is non-virtual and non-static)
ipc
bool mozilla::ipc::GeckoChildProcessHost::AsyncLaunch(vector)
Code Size: 17
widget
PRBool confirm_overwrite_file(GtkWidget*,nsILocalFile*)
Code Size: 95
nsresult nsDeviceContextSpecGTK::GetPrintMethod(PrintMethod&)
Code Size: 4
void nsPrinterFeatures::SetMultipleConcurrentDeviceContextsSupported(PRBool)
Code Size: 2
nsCursor nsBaseWidget::GetCursor()
Code Size: 2
Note: Must also be removed from nsIWidget.
extensions
nsresult nsCyrXPCOMStringDetector::DoIt(const char*,PRUint32,const char**,nsDetectionConfident&)
Code Size: 19
nsresult nsXPCOMStringDetector::DoIt(const char*,PRUint32,const char**,nsDetectionConfident&)
Code Size: 32
view
nsIntPoint nsIView::GetScreenPosition()
Code Size: 39
nsresult nsViewManager::GetViewObserver(nsIViewObserver*&)
Code Size: 16
void nsView::SetPositionIgnoringChildWidgets(nscoord,nscoord)
Code Size: 14
nsresult nsViewManager::MoveViewBy(nsIView*,nscoord,nscoord)
Code Size: 14
nsresult nsViewManager::InsertChild(nsIView*,nsIView*,PRInt32)
Code Size: 10
PRBool nsIView::ExternalIsRoot()
Code Size: 3
Note: Used in an NS_ASSERTION here. Why not just call nsIView::IsRoot?
layout/xul
void nsBoxFrame::FireDOMEventSynch(const nsAString_internal&,nsIContent*)
Code Size: 46
void nsGridRow::MarkDirty(nsBoxLayoutState&)
Code Size: 16
void nsBoxLayout::GetParentLayout(nsIBox*,nsIBoxLayout**)
Code Size: 9
nsGridRow* nsGrid::GetRows()
Code Size: 3
nsGridRow* nsGrid::GetColumns()
Code Size: 3
nsresult nsMenuFrame::IsActive(PRBool&)
Code Size: 3
void nsBox::AddMargin(nsSize&)
Code Size: 3
layout/base
nsIFrame* nsLayoutUtils::GetClosestCommonAncestorViaPlaceholders(nsIFrame*,nsIFrame*,nsIFrame*)
MXR Search (Calls itself)
Code Size: 62
nsBidi::nsBidi(PRUint32,PRUint32)
Code Size: 43
nsIFrame* nsFrameManager::GetCanvasFrame()
Code Size: 20
nsresult nsBidiPresUtils::GetBidiEngine(nsBidi**)
Code Size: 8
void nsDisplayList::DeleteBottom()
Code Size: 7
void nsFrameManager::ClearUndisplayedContentMap()
Code Size: 5
gfxContext* nsContextBoxBlur::GetContext()
MXR Search (Non-virtual function from a non-derived class: the script is probably right)
Code Size: 4
PRInt32 nsIPresShell::GetVerifyReflowFlags()
Code Size: 2
void nsIPresShell::SetVerifyReflowEnable(PRBool)
MXR Search (called by ifdef DEBUG code)
Code Size: 2
PRBool nsIPresShell::GetVerifyReflowEnable()
MXR Search (called by ifdef DEBUG code)
Code Size: 2
PRBool PresShell::nsDelayedEvent::Equals(nsPIDOMEventTarget*,PRUint32)
(Impossible to verify with MXR)
Code Size: 2
layout/style
nsresult CSSLoaderImpl::StopLoadingSheet(nsIURI*)
Code Size: 96
StopLoadingSheetsByURIClosure::StopLoadingSheetsByURIClosure(nsIURI*,nsTArray&)
MXR Search (called by StopLoadingSheet)
Code Size: 3
PRBool langMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)
Code Size: 69
const nsString* RuleProcessorData::GetLang()
MXR Search (called by langMatches)
Code Size: 46
PRBool mozSystemMetricMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)
Code Size: 9
void nsCSSCornerSizes::SetAllCornersTo(const nsCSSValue&)
MXR Search (NS_HIDDEN)
Code Size: 7
nsCSSProperty nsCSSProps::LookupProperty(const nsACString_internal&)
MXR Search (Only nsAString version used)
Code Size: 5
nsresult CSSLoaderImpl::GetPreferredSheet(nsAString_internal&)
Code Size: 4
nsCSSFontDesc nsCSSProps::LookupFontDesc(const nsACString_internal&)
MXR Search (Only the nsAString version is apparently used but what about this line?)
Code Size: 4
nsCSSKeyword nsCSSKeywords::LookupKeyword(const nsACString_internal&)
MXR Search (Only the nsAString version is apparently used but what about this line?)
Code Size: 7
nsCSSValueGradientStop::nsCSSValueGradientStop(const nsCSSValueGradientStop&)
MXR Search (Probably not a good idea to remove this)
Code Size: 7
nsCSSCornerSizes::nsCSSCornerSizes(const nsCSSCornerSizes&)
MXR Search (Probably not a good idea to remove this)
Code Size: 13
nsCSSValueListRect::nsCSSValueListRect(const 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
nsCSSValue( MXR Search (Only the no-argument and nsCSSUnit constructors are used)
nsresult nsHTMLStyleSheet::GetLinkColor(nscolor&)
Code Size: 8
nsresult nsHTMLStyleSheet::GetActiveLinkColor(nscolor&)
Code Size: 8
nsresult nsHTMLStyleSheet::GetVisitedLinkColor(nscolor&)
Code Size: 8
PRBool nsCSSPseudoClasses::IsPseudoClass(nsIAtom*)
Code Size: 3
void nsCSSValue::SetRectIsAutoValue()
Code Size: 3
PRBool nsCSSPseudoElements::IsPseudoElement(nsIAtom*)
MXR Search (One use in an NS_ASSERTION)
Code Size: 3
nsresult nsCSSDeclaration::AppendComment(const nsAString_internal&)
Code Size: 2
PRInt32 RuleProcessorData::GetNthIndex(PRBool,PRBool,PRBool)
MXR Search (Called by edgeChildMatches, nthChildGenericMatches, edgeOfTypeMatches)
Code Size: 87
PRBool edgeOfTypeMatches(RuleProcessorData&,PRBool,PRBool,PRBool)
MXR Search (Called by firstOfTypeMatches, lastOfTypeMatches, onlyOfTypeMatches)
Code Size: 19
PRBool nthChildGenericMatches(RuleProcessorData&,PRBool,nsPseudoClassList*,PRBool,PRBool)
MXR Search (Called by nthChildMatches, nthLastChildMatches, nthOfTypeMatches, nthLastOfTypeMatches)
Code Size: 30
PRBool edgeChildMatches(RuleProcessorData&,PRBool,PRBool,PRBool)
MXR Search (Called by firstChildMatches, lastChildMatches, onlyChildMatches)
Code Size: 16
PRBool onlyOfTypeMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)
Code Size: 3
PRBool lastOfTypeMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)
Code Size: 3
PRBool firstOfTypeMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)
Code Size: 3
PRBool nthLastOfTypeMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)
Code Size: 3
PRBool nthOfTypeMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)
Code Size: 3
PRBool nthLastChildMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)
Code Size: 3
PRBool nthLastChildMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)
Code Size: 3
PRBool nthChildMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)
Code Size: 3
PRBool onlyChildMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)
Code Size: 3
PRBool lastChildMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)
Code Size: 3
PRBool firstChildMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)
Code Size: 3
layout/generic
void nsFrameList::SortByContentOrder()
MXR Search (This will take an nsTArray::Sort along with it too)
Code Size: 35
nsIFrame* nsBlockFrame::GetTopBlockChild(nsPresContext*)
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
nsLineBox* nsLineBox::FindLineContaining(nsLineList&,nsIFrame*,PRInt32*)
Code Size: 18
PRBool nsFrameList::ContainsFrameBefore(const nsIFrame*,const nsIFrame*)
Code Size: 10
nsFramesetDrag::nsFramesetDrag(PRBool,PRInt32,PRInt32,nsHTMLFramesetFrame*)
Code Size: 6
void Area::GetHREF(nsAString_internal&)
MXR Search (Pain to check but dead. Note that it's non-virtual from a non-derived class)
Code Size: 3
nsRect nsIFrame::GetMarginRect()
Code Size: 11
PRBool nsIntervalSet::HasPoint(nscoord)
Code Size: 10
nsresult nsIFrame::Clip(nsDisplayListBuilder*,const nsDisplayListSet&,const nsDisplayListSet&,const nsRect&)
Code Size: 4
nsRect nsIFrame::GetScreenRectInAppUnitsExternal()
Code Size: 3
void* nsIFrame::GetPropertyExternal(nsIAtom*,nsresult*)
MXR Search (taken out at some point)
Code Size: 3
layout/tables
void nsTableOuterFrame::BalanceLeftRightCaption(PRUint8,const nsMargin&,const nsMargin&,nscoord&,nscoord&)
Code Size: 66
PRBool nsCellMap::ColHasSpanningCells(PRInt32)
MXR Search (Called by nsTableCellMap::ColHasSpanningCells)
Code Size: 31
PRBool nsTableFrame::ColHasSpanningCells(PRInt32)
Code Size: 11
PRBool nsTableCellMap::ColHasSpanningCells(PRInt32)
MXR Search (Called by nsTableFrame::ColHasSpanningCells)
Code Size: 10
PRBool nsTableCellMap::ColIsSpannedInto(PRInt32)
MXR Search (Called by nsTableFrame::ColIsSpannedInto)
Code Size: 31
PRBool nsTableFrame::ColIsSpannedInto(PRInt32)
Code Size: 11
PRBool nsCellMap::IsZeroColSpan(PRInt32,PRInt32)
Code Size: 14
void nsTableFrame::SetColumnWidth(PRInt32,nscoord)
Code Size: 17
PRBool nsTableFrame::IsAutoWidth(PRBool*)
Code Size: 17
PRInt32 nsTableFrame::GetEffectiveCOLSAttribute()
Code Size: 9
PRBool nsTableFrame::IsPctHeight(nsStyleContext*)
Code Size: 8
layout/forms
nsresult nsComboboxControlFrame::GetOptionSelected(PRInt32,PRBool*)
Code Size: 11
nsresult nsListControlFrame::GetOptionSelected(PRInt32,PRBool*)
Code Size: 4
nsresult nsISelectControlFrame::GetOptionSelected(PRInt32,PRBool*)
MXR Search (called by nsComboboxControlFrame::GetOptionSelected)
Code Size: 0 (pure virtual)
nsMargin nsButtonFrameRenderer::GetFullButtonBorderAndPadding()
Code Size: 5
nsMargin nsButtonFrameRenderer::GetButtonOutlineBorderAndPadding()
Code Size: 3
layout/mathml
nsresult nsMathMLFrame::SetEmbellishData(const nsEmbellishData&)
Code Size: 8
nsresult nsMathMLFrame::SetEmbellishData(const nsEmbellishData&)
Code Size: 0 (pure virtual)
nsresult nsMathMLFrame::GetReference(nsPoint&)
Code Size: 3
nsresult nsIMathMLFrame::GetReference(nsPoint&)
Code Size: 0 (pure virtual)
nsresult nsMathMLFrame::SetPresentationData(const nsPresentationData&)
Code Size: 3
nsresult nsIMathMLFrame::SetPresentationData(const nsPresentationData&)
Code Size: 0 (pure virtual)
layout/inspector
void inSearchLoop::inSearchLoop(inISearchProcess*)
MXR Search (This'll take an nsCOMPtr::operator= along with it)
Code Size: 11
- Upon further examination, the whole layout/inspector module seems unused. All of the classes from these files end up in an NS_GENERIC_FACTORY_CONSTRUCTOR (except inSearchLoop). The Makefile also claims "This library is used by other shared libs in a static build". Reading this mdc page, this is apparently used for the DOM Inspector, but does it/should it make its way into libxul?
xpcom/components
Don't know if this stuff can be touched
nsresult nsServiceManager::GetGlobalServiceManager(nsIServiceManager**)
Code Size: 15
nsresult nsServiceManager::ShutdownGlobalServiceManager(nsIServiceManager**)
Code Size: 2
xpcom/base
nsresult nsTraceRefcntImpl::LogAddRef(void*,nsrefcnt,const char*,PRUint32) et al
6 of the functions of this class are dead but the idl file lists the classes status as frozen (and deprecated).
Bugs/Strangeness
layout/xul
void nsBox::CoordNeedsRecalc(PRInt32&)
Code Size: 2
This is declared in the header here as taking an ncoord& parameter however it is defined here as taking PRInt32&. Won't compile if NS_COORD_IS_FLOAT is defined.
void nsListBoxBodyFrame::SetRowHeight(nscoord)
Code Size: 41
Same situation, except SetRowHeight is declared in the header as taking a PRInt32 yet the definition lists the parameter as nscoord.