Difference between revisions of "User:Egmetcalfe/Dead Code"
Egmetcalfe (talk | contribs) |
Egmetcalfe (talk | contribs) |
||
Line 144: | Line 144: | ||
Code Size: 47 | Code Size: 47 | ||
− | === accessible === | + | === mozilla/accessible === |
Path info: AddTargetFromChildrenHavingIDRefsAttr calls GetElementsHavingIDRefsAttrImpl | Path info: AddTargetFromChildrenHavingIDRefsAttr calls GetElementsHavingIDRefsAttrImpl | ||
Line 261: | Line 261: | ||
Code Size: 2 | Code Size: 2 | ||
+ | |||
+ | ===mozilla/editor=== | ||
+ | |||
+ | ====nsresult nsHTMLCSSUtils::RemoveCSSProperty(nsIDOMElement*,const nsAString_internal&)==== | ||
+ | |||
+ | [http://mxr.mozilla.org/mozilla-central/search?string=RemoveCSSProperty MXR Search] | ||
+ | |||
+ | Code Size: 28 | ||
+ | |||
+ | ===mozilla/content/events=== | ||
+ | |||
+ | ====nsresult nsPrivateTextRange::SetRangeType(PRUint16)==== | ||
+ | |||
+ | [http://mxr.mozilla.org/mozilla-central/search?string=SetRangeType MXR Search] | ||
+ | |||
+ | Code Size: 3 | ||
+ | |||
+ | ====nsresult nsPrivateTextRange::SetRangeEnd(PRUint16)==== | ||
+ | |||
+ | [http://mxr.mozilla.org/mozilla-central/search?string=SetRangeEnd MXR Search] | ||
+ | |||
+ | Code Size: 3 | ||
+ | |||
+ | ====nsresult nsPrivateTextRange::SetRangeStart(PRUint16)==== | ||
+ | |||
+ | [http://mxr.mozilla.org/mozilla-central/search?string=SetRangeStart MXR Search] | ||
+ | |||
+ | Code Size: 3 | ||
+ | |||
+ | ===mozilla/content/xslt=== | ||
+ | |||
+ | ====MBool txDouble::isNeg(double)==== | ||
+ | |||
+ | [http://mxr.mozilla.org/mozilla-central/search?string=isNeg MXR Search] | ||
+ | |||
+ | Code Size: 5 | ||
+ | |||
+ | ====PRInt32 txNamespaceMap::lookupNamespace(const nsAString_internal&)==== | ||
+ | |||
+ | [http://mxr.mozilla.org/mozilla-central/search?string=lookupNamespace MXR Search] | ||
+ | |||
+ | Code Size: 8 | ||
+ | |||
+ | Note: Only lookupNamespace(nsIAtom*) is used | ||
+ | |||
+ | ====txXPathNode* txXPathNodeUtils::getDocument(const txXPathNode&)==== | ||
+ | |||
+ | [http://mxr.mozilla.org/mozilla-central/search?string=getDocument MXR Search] | ||
+ | |||
+ | Code Size: 11 | ||
+ | |||
+ | ====PRBool txEarlyEvalContext::isStripSpaceAllowed(const txXPathNode&)==== | ||
+ | |||
+ | [http://mxr.mozilla.org/mozilla-central/search?string=isStripSpaceAllowed MXR Search] | ||
+ | |||
+ | Code Size: 2 | ||
+ | |||
+ | ====PRBool txExecutionState::isStripSpaceAllowed(const txXPathNode&)==== | ||
+ | |||
+ | [http://mxr.mozilla.org/mozilla-central/search?string=isStripSpaceAllowed MXR Search] | ||
+ | |||
+ | Code Size: 6 | ||
+ | |||
+ | ====PRBool txXSLTParamContext::isStripSpaceAllowed(const txXPathNode&)==== | ||
+ | |||
+ | [http://mxr.mozilla.org/mozilla-central/search?string=isStripSpaceAllowed MXR Search] | ||
+ | |||
+ | 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**)==== | ||
+ | |||
+ | [http://mxr.mozilla.org/mozilla-central/search?string=getNodeSet MXR Search] | ||
+ | |||
+ | Code Size: 29 | ||
+ | |||
+ | ===mozilla/content/xul=== | ||
+ | |||
+ | ====PRBool TestNode::HasAncestor(const ReteNode*)==== | ||
+ | |||
+ | [http://mxr.mozilla.org/mozilla-central/search?string=HasAncestor MXR Search] | ||
+ | |||
+ | Code Size: 11 | ||
+ | |||
+ | ====PRBool nsXULDocument::ContextStack::IsInsideXULTemplate()==== | ||
+ | |||
+ | [http://mxr.mozilla.org/mozilla-central/search?string=IsInsideXULTemplate MXR Search] | ||
+ | |||
+ | Code Size: 16 | ||
+ | |||
+ | ===mozilla/content/xbl=== | ||
+ | |||
+ | ====nsCOMArray* nsXBLPrototypeBinding::GetStyleSheets()==== | ||
+ | |||
+ | [http://mxr.mozilla.org/mozilla-central/search?string=HandleScriptError MXR Search] | ||
+ | |||
+ | Code Size: 6 | ||
+ | |||
+ | ===mozilla/dom=== | ||
+ | |||
+ | ====nsresult nsIScriptGlobalObject::HandleScriptError(nsScriptErrorEvent*,nsEventStatus*)==== | ||
+ | |||
+ | [http://mxr.mozilla.org/mozilla-central/search?string=HandleScriptError MXR Search] | ||
+ | |||
+ | Code Size: 3 | ||
+ | |||
+ | <s>===mozilla/content/canvas=== | ||
+ | |||
+ | ====PRUint32 mozilla::SimpleBuffer::ElementSize()==== | ||
+ | |||
+ | [http://mxr.mozilla.org/mozilla-central/search?string=ElementSize MXR Search] | ||
+ | |||
+ | Code Size: 26 | ||
+ | |||
+ | ====void mozilla::SimpleBuffer::Prepare(PRUint32,PRUint32,PRUint32)==== | ||
+ | |||
+ | [http://mxr.mozilla.org/mozilla-central/search?string=Prepare MXR Search] | ||
+ | |||
+ | Code Size: 9 | ||
+ | |||
+ | ====void mozilla::SimpleBuffer::EnsureCapacity(PRBool,PRUint32)==== | ||
+ | |||
+ | [http://mxr.mozilla.org/mozilla-central/search?string=EnsureCapacity MXR Search] | ||
+ | |||
+ | Code Size: 19 | ||
+ | |||
+ | ====PRBool mozilla::SimpleBuffer::InitFromJSArray(PRUint32,PRUint32,JSContext*,JSObject*,jsuint)==== | ||
+ | |||
+ | [http://mxr.mozilla.org/mozilla-central/search?string=InitFromJSArray MXR Search] | ||
+ | |||
+ | Code Size: 127 | ||
+ | </s> | ||
+ | |||
+ | Note: SimpleBuffer has been removed in a recent revision | ||
+ | |||
+ | ===mozilla/security/manager/ssl=== | ||
+ | |||
+ | Path Info: | ||
+ | |||
+ | CommonAsyncVerifySignature is called by AsyncVerifySignature and AsyncVerifyDetachedSignature. | ||
+ | |||
+ | ====nsresult nsCMSMessage::CommonAsyncVerifySignature(nsISMimeVerificationListener*,unsigned char*,PRUint32)==== | ||
+ | |||
+ | [http://mxr.mozilla.org/mozilla-central/search?string=CommonAsyncVerifySignature MXR Search] | ||
+ | |||
+ | Code Size: 43 | ||
+ | |||
+ | ====nsresult nsCMSMessage::AsyncVerifyDetachedSignature(nsISMimeVerificationListener*,unsigned char*,PRUint32)==== | ||
+ | |||
+ | [http://mxr.mozilla.org/mozilla-central/search?string=AsyncVerifyDetachedSignature MXR Search] | ||
+ | |||
+ | Code Size: 6 | ||
+ | |||
+ | ====nsresult nsCMSMessage::AsyncVerifySignature(nsISMimeVerificationListener*)==== | ||
+ | |||
+ | [http://mxr.mozilla.org/mozilla-central/search?string=AsyncVerifySignature MXR Search] | ||
+ | |||
+ | 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 | ||
+ | |||
+ | ===mozilla/intl=== | ||
+ | |||
+ | ====PRUint16* MapperToCCMap(nsICharRepresentable*)==== | ||
+ | |||
+ | [http://mxr.mozilla.org/mozilla-central/search?string=MapperToCCMap MXR Search] | ||
+ | |||
+ | Code Size: 15 | ||
+ | |||
+ | ====void nsBufferDecoderSupport::DoubleBuffer()==== | ||
+ | |||
+ | [http://mxr.mozilla.org/mozilla-central/search?string=DoubleBuffer MXR Search] | ||
+ | |||
+ | Code Size: 19 |
Revision as of 12:57, 23 March 2010
Note: Code Size is a count of the number of GIMPLE instructions during pass cfg.
Contents
- 1 content/base
- 1.1 PRBool nsParserUtils::GetQuotedAttrNameAt(const nsString&,PRUint32,nsAString_internal&)
- 1.2 nsIContent* nsContentUtils::FindFirstChildWithResolvedTag(nsIContent*,PRInt32,nsIAtom*)
- 1.3 nsIDocShell* nsContentUtils::GetDocShellFromCaller()
- 1.4 nsIContent* nsContentUtils::GetReferencedElement(nsIURI*,nsIContent*)
- 1.5 void nsXMLNameSpaceMap::RemovePrefix(nsIAtom*)
- 2 content/html
- 2.1 void nsGenericHTMLElement::GetHrefURIToMutate(nsIURI**)
- 2.2 nsresult nsGenericHTMLElement::SetFloatAttr(nsIAtom*,float)
- 2.3 nsresult nsGenericHTMLElement::GetFloatAttr(nsIAtom*,float,float*)
- 2.4 nsresult nsHTMLDNSPrefetch::PrefetchHigh(nsAString_internal&)
- 2.5 nsresult nsHTMLDNSPrefetch::PrefetchHigh(Link*)
- 2.6 nsresult nsHTMLDNSPrefetch::PrefetchMedium(nsAString_internal&)
- 2.7 nsresult nsHTMLDNSPrefetch::PrefetchMedium(Link*)
- 2.8 PRBool SinkContext::IsAncestorContainer(nsHTMLTag)
- 2.9 nsresult nsHTMLFragmentContentSink::AddTextToContent(nsIContent*,const nsAString_internal&)
- 3 content/media
- 4 modules/libreg
- 4.1 REGERR NR_RegIsWritable(HREG)
- 4.2 REGERR VR_PackRegistry(void*,nr_RegPackCallbackFunc)
- 4.3 REGERR NR_RegEnumEntries(HREG,RKEY,REGENUM*,char*,uint32,REGINFO*)
- 4.4 REGERR VR_UninstallEnumSharedFiles(char*,REGENUM*,char*,uint32)
- 4.5 REGERR NR_RegPack(HREG,void*,nr_RegPackCallbackFunc)
- 4.6 REGERR VR_PackRegistry(void*,nr_RegPackCallbackFunc)
- 5 modules/libpref
- 6 mozilla/accessible
- 6.1 void nsCoreUtils::GetElementsHavingIDRefsAttrImpl(nsIContent*,nsCString&,nsIAtom*,nsIMutableArray*)
- 6.2 nsresult nsRelUtils::AddTargetFromChildrenHavingIDRefsAttr(PRUint32,nsIAccessibleRelation**,nsIContent*,nsIContent*,nsIAtom*)
- 6.3 already_AddRefed nsAccUtils::QueryAccessibleTable(nsIAccessibleTable*)
- 7 embedding/components/windowwatcher
- 8 modules/libpref
- 9 gfx/thebes/public
- 10 gfx/src/thebes
- 10.1 nsresult nsThebesRenderingContext::GetTextDimensions(const PRUnichar*,PRInt32,PRInt32,PRInt32*,PRInt32,nsTextDimensions&,PRInt32&,nsTextDimensions&,PRInt32*)
- 10.2 nsresult nsThebesRenderingContext::GetTextDimensionsInternal(const PRUnichar*,PRInt32,PRInt32,PRInt32*,PRInt32,nsTextDimensions&,PRInt32&,nsTextDimensions&,PRInt32*)
- 10.3 nsresult nsThebesRenderingContext::DrawEllipse(const nsRect&)
- 11 modules/libpr0n
- 12 mozilla/editor
- 13 mozilla/content/events
- 14 mozilla/content/xslt
- 14.1 MBool txDouble::isNeg(double)
- 14.2 PRInt32 txNamespaceMap::lookupNamespace(const nsAString_internal&)
- 14.3 txXPathNode* txXPathNodeUtils::getDocument(const txXPathNode&)
- 14.4 PRBool txEarlyEvalContext::isStripSpaceAllowed(const txXPathNode&)
- 14.5 PRBool txExecutionState::isStripSpaceAllowed(const txXPathNode&)
- 14.6 PRBool txXSLTParamContext::isStripSpaceAllowed(const txXPathNode&)
- 14.7 nsresult txResultRecycler::getNodeSet(const txXPathNode&,txNodeSet**)
- 15 mozilla/content/xul
- 16 mozilla/content/xbl
- 17 mozilla/dom
- 17.1 nsresult nsIScriptGlobalObject::HandleScriptError(nsScriptErrorEvent*,nsEventStatus*)
- 17.2 PRUint32 mozilla::SimpleBuffer::ElementSize()
- 17.3 void mozilla::SimpleBuffer::Prepare(PRUint32,PRUint32,PRUint32)
- 17.4 void mozilla::SimpleBuffer::EnsureCapacity(PRBool,PRUint32)
- 17.5 PRBool mozilla::SimpleBuffer::InitFromJSArray(PRUint32,PRUint32,JSContext*,JSObject*,jsuint)
- 18 mozilla/security/manager/ssl
- 18.1 nsresult nsCMSMessage::CommonAsyncVerifySignature(nsISMimeVerificationListener*,unsigned char*,PRUint32)
- 18.2 nsresult nsCMSMessage::AsyncVerifyDetachedSignature(nsISMimeVerificationListener*,unsigned char*,PRUint32)
- 18.3 nsresult nsCMSMessage::AsyncVerifySignature(nsISMimeVerificationListener*)
- 18.4 nsCOMPtr& nsCOMPtr::operator=(nsICMSMessage*)
- 18.5 nsCOMPtr& nsCOMPtr::operator=(nsISMimeVerificationListener*)
- 19 mozilla/intl
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_
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
content/media
nsresult nsMediaCacheStream::ReadFromCache(char*,PRInt64,PRInt64)
Code Size: 82
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
mozilla/accessible
Path info: AddTargetFromChildrenHavingIDRefsAttr calls GetElementsHavingIDRefsAttrImpl
void nsCoreUtils::GetElementsHavingIDRefsAttrImpl(nsIContent*,nsCString&,nsIAtom*,nsIMutableArray*)
Code Size: 42
nsresult nsRelUtils::AddTargetFromChildrenHavingIDRefsAttr(PRUint32,nsIAccessibleRelation**,nsIContent*,nsIContent*,nsIAtom*)
Code Size: 52
already_AddRefed nsAccUtils::QueryAccessibleTable(nsIAccessibleTable*)
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
mozilla/editor
nsresult nsHTMLCSSUtils::RemoveCSSProperty(nsIDOMElement*,const nsAString_internal&)
Code Size: 28
mozilla/content/events
nsresult nsPrivateTextRange::SetRangeType(PRUint16)
Code Size: 3
nsresult nsPrivateTextRange::SetRangeEnd(PRUint16)
Code Size: 3
nsresult nsPrivateTextRange::SetRangeStart(PRUint16)
Code Size: 3
mozilla/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
mozilla/content/xul
PRBool TestNode::HasAncestor(const ReteNode*)
Code Size: 11
PRBool nsXULDocument::ContextStack::IsInsideXULTemplate()
Code Size: 16
mozilla/content/xbl
nsCOMArray* nsXBLPrototypeBinding::GetStyleSheets()
Code Size: 6
mozilla/dom
nsresult nsIScriptGlobalObject::HandleScriptError(nsScriptErrorEvent*,nsEventStatus*)
Code Size: 3
===mozilla/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
mozilla/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
mozilla/intl
PRUint16* MapperToCCMap(nsICharRepresentable*)
Code Size: 15
void nsBufferDecoderSupport::DoubleBuffer()
Code Size: 19