Changes

Jump to: navigation, search

User:Egmetcalfe/Dead Code

29,159 bytes added, 10:40, 10 December 2011
view: Update
Note: Code Size is a count of the number of GIMPLE instructions during pass cfg.
 
==Unconditionally Dead==
 
===xpfe/components/intl===
 
====nsresult nsCharsetMenu::SetCharsetCheckmark(nsString*, PRBool)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=SetCharsetCheckmark MXR Search]
 
Code Size: 75
===content/base===
====PRBool nsParserUtils::GetQuotedAttrNameAt(const nsString&,PRUint32,nsAString_internal&)====
[http://mxr.mozilla.org/mozilla-central/source/content/base/src/nsParserUtils.h#83 Declaration] [http://mxr.mozilla.org/mozilla-central/source/content/base/src/nsParserUtils.cpp#175 Definition] [http://mxr.mozilla.org/mozilla-central/search?string=GetQuotedAttrNameAt MXR Search] *
Code Size: 96, Static method
====nsIContent* nsContentUtils::FindFirstChildWithResolvedTag(nsIContent*,PRInt32,nsIAtom*)====
[http://mxr.mozilla.org/mozilla-central/source/content/base/public/nsContentUtils.h#310 Declaration] [http://mxr.mozilla.org/mozilla-central/source/content/base/src/nsContentUtils.cpp#1728 Definition] [http://mxr.mozilla.org/mozilla-central/search?string=FindFirstChildWithResolvedTag MXR Search] *
Code Size: 92, Static method
====nsIDocShell* nsContentUtils::GetDocShellFromCaller()====[http://mxr.mozilla.org/mozilla-central/source/content/base/public/nsContentUtils.h#418 Declaration] [http://mxr.mozilla.org/mozilla-central/source/content/base/src/nsContentUtils.cpp#1304 Definition] [http://mxr.mozilla.org/mozilla-central/search?string=GetDocShellFromCaller MXR Search] *
Code Size: 33, Static method
====nsIContent* nsContentUtils::GetReferencedElement(nsIURI*,nsIContent*)====
[http://mxr.mozilla.org/mozilla-central/search?string=GetReferencedElement MXR Search] *
Code Size: 6, Static method
====void nsXMLNameSpaceMap::RemovePrefix(nsIAtom*)====
[http://mxr.mozilla.org/mozilla-central/source/content/base/public/nsXMLNameSpaceMap.h#83 Declaration] [http://mxr.mozilla.org/mozilla-central/source/content/base/src/nsXMLNameSpaceMap.cpp#113 Definition] [http://mxr.mozilla.org/mozilla-central/search?string=RemovePrefix MXR Search] *
Code Size: 3, NS_HIDDEN_
 
====✓ nsresult nsPlainTextSerializer::WillProcessTokens()====
 
[http://mxr.mozilla.org/mozilla-central/search?string=WillProcessTokens MXR Search] (forgot to include this in original patch)
 
Code Size: 2
 
====nsresult nsAttrAndChildArray::SetAttr(nsIAtom*,const nsAString_internal&)====
 
Run [http://mxr.mozilla.org/mozilla-central/search?string=SetAttr%28&case=1&find=&findi=&filter=&hitlimit=&tree=mozilla-central this search]. Save page to file. grep for lines with only one comma: grep "^[^,]*,[^,]*$"
 
Code Size: 71
=== content/html ===
====void nsGenericHTMLElement::GetHrefURIToMutate(nsIURI**)====
[http://mxr.mozilla.org/mozilla-central/search?string=GetHrefURIToMutate MXR Search] *
Code Size: 3
====✓ PRBool SinkContext::IsAncestorContainer(nsHTMLTag)==== [http://mxr.mozilla.org/mozilla-central/search?string=IsAncestorContainer MXR Search] * Code Size: 13 ====✓ nsresult nsGenericHTMLElementnsHTMLFragmentContentSink::AddTextToContent(nsIContent*,const nsAString_internal&)==== [http://mxr.mozilla.org/mozilla-central/search?string=AddTextToContent MXR Search] * Code Size: 26 ====✓ void nsXHTMLContentSerializer::SetFloatAttrAppendToString(nsIAtomconst PRUnichar*,floatPRInt32, nsAString_internal&)==== loc: content/base/src/nsXHTMLContentSerializer.h [http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DAppendToString%5C%2528&regexp=on&case=on MXR Search] Code Size: 0, virtual ====✓ void nsXMLContentSerializer::AppendToString(const PRUnichar*, PRInt32, nsAString_internal&)==== loc: content/base/src/nsXMLContentSerializer.h [http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DAppendToString%5C%2528&regexp=on&case=on MXR Search] Code Size: 0, virtual <s>====nsresult nsHTMLDocument::GetLinkColor(nsAString& aLinkColor)==== [http://mxr.mozilla.org/mozilla-central/search?string=GetLinkColor MXR Search] (Discovered by accident when verifying nsHTMLStyleSheet::GetLinkColor) Code Size: 12 LOC</s> (nevermind: it's scriptable)
Code Size: 6===content/media===
[http<del>====nsresult nsMediaCacheStream://mxr.mozilla.org/mozilla-central/search?string=SetFloatAttr MXR Search] :ReadFromCache(One use in a dead macrochar*,PRInt64,PRInt64) *====
[http://mxr.mozilla.org/mozilla-central/search?string====nsresult nsGenericHTMLElement::GetFloatAttr(nsIAtomReadFromCache MXR Search] *,float,float*)====
[httpCode Size:82<//mxr.mozilla.org/mozilla-central/search?string=GetFloatAttr MXR Search] (One use in a dead macro) *del>
Code Size: 15===content/events===
====nsresult nsHTMLDNSPrefetchnsPrivateTextRange::PrefetchHighSetRangeType(nsAString_internal&PRUint16)====
[http://mxr.mozilla.org/mozilla-central/search?string=PrefetchHigh SetRangeType MXR Search] *
Code Size: 3
====nsresult nsHTMLDNSPrefetchnsPrivateTextRange::PrefetchHighSetRangeEnd(Link*PRUint16)====
[http://mxr.mozilla.org/mozilla-central/search?string=PrefetchHigh SetRangeEnd MXR Search] *
Code Size: 3
====nsresult nsHTMLDNSPrefetchnsPrivateTextRange::PrefetchMediumSetRangeStart(nsAString_internal&PRUint16)====
[http://mxr.mozilla.org/mozilla-central/search?string=PrefetchMedium SetRangeStart MXR Search] *
Code Size: 3
===content/xslt=== <del>====MBool txDouble::isNeg(double)==== [http://mxr.mozilla.org/mozilla-central/search?string=isNeg MXR Search] Code Size: 5</del> ====PRInt32 txNamespaceMap::lookupNamespace(const nsAString_internal&)==== [http://mxr.mozilla.org/mozilla-central/search?string=lookupNamespace MXR Search] [https://bugzilla.mozilla.org/show_bug.cgi?id=705429 Bug] 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] [https://bugzilla.mozilla.org/show_bug.cgi?id=705430 Bug] Code Size: 11 <del>====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.</del> ====nsresult nsHTMLDNSPrefetchtxResultRecycler::PrefetchMediumgetNodeSet(Linkconst txXPathNode&,txNodeSet**)==== [http://mxr.mozilla.org/mozilla-central/search?string=getNodeSet MXR Search] [https://bugzilla.mozilla.org/show_bug.cgi?id=705432 Bug] Code Size: 29 ===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=PrefetchMedium IsInsideXULTemplate MXR Search] *
Code Size: 316 ===content/xbl===
<del>====PRBool SinkContextnsCOMArray* nsXBLPrototypeBinding::IsAncestorContainerGetStyleSheets(nsHTMLTag)====
[http://mxr.mozilla.org/mozilla-central/search?string=IsAncestorContainer GetStyleSheets MXR Search] *
Code Size: 136</del>
====nsresult nsHTMLFragmentContentSink::AddTextToContent(nsIContent*,const nsAString_internal&)=content/canvas===
[http====✓ void mozilla::CanvasUtils://mxr.mozilla.org/mozilla-central/search?string:LogMessagef(const char*)====AddTextToContent MXR Search] *
Code Size[http: 26//mxr.mozilla.org/mozilla-central/search?string=LogMessagef MXR Search]
=== content/media ===Code Size: 24
====nsresult nsMediaCacheStream✓ void mozilla::ReadFromCacheCanvasUtils::LogMessage(char*,PRInt64,PRInt64const nsCString&)====
[http://mxr.mozilla.org/mozilla-central/search?string=ReadFromCache LogMessage MXR Search] *Difficult to verify
Code Size: 8226
=== modules/libreg ===
Code Size: 47
=== mozillamodules/accessible plugin ===
Path info====bool mozilla: AddTargetFromChildrenHavingIDRefsAttr calls GetElementsHavingIDRefsAttrImpl:plugins::parent::::_tostring(NPObject*,NPVariant*)====
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z%5D_tostring&regexp=on MXR Search] Code Size: 7 === accessible === ====✓ const gchar* ::getDocumentTypeCB(AtkDocument*)==== loc: accessible/src/atk/nsMaiInterfaceDocument.cpp [http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DgetDocumentTypeCB%5C%2528&regexp=on&case=on MXR Search] (dead callback function - woohoo) Code Size: 42 Path info: AddTargetFromChildrenHavingIDRefsAttr calls GetElementsHavingIDRefsAttr which calls GetElementsHavingIDRefsAttrImpl. ====✓ void nsCoreUtils::GetElementsHavingIDRefsAttrImpl(nsIContent*,nsCString&,nsIAtom*,nsIMutableArray*)====
[http://mxr.mozilla.org/mozilla-central/search?string=GetElementsHavingIDRefsAttrImpl MXR Search]
Code Size: 42, ^ ====✓ void nsCoreUtils::GetElementsHavingIDRefsAttr(nsIContent*,nsIContent*,nsIAtom*,nsIArray**)====
[http://mxr.mozilla.org/mozilla-central/search?string=GetElementsHavingIDRefsAttr MXR Search] Code Size: 0? [http://mxr.mozilla.org/mozilla-central/source/accessible/src/base/nsCoreUtils.cpp#879 Really?], ^ ====✓ nsresult nsRelUtils::AddTargetFromChildrenHavingIDRefsAttr(PRUint32,nsIAccessibleRelation**,nsIContent*,nsIContent*,nsIAtom*)====
[http://mxr.mozilla.org/mozilla-central/search?string=AddTargetFromChildrenHavingIDRefsAttr MXR Search]
Code Size: 52, ^
====already_AddRefed nsAccUtils::QueryAccessibleTable(nsIAccessibleTable*)====
[http://mxr.mozilla.org/mozilla-central/search?string=QueryAccessibleTable MXR Search]
Code Size: 7, ^ ====✓ already_AddRefed nsCoreUtils::GetLastSensibleColumn(nsITreeBoxObject*)==== [http://mxr.mozilla.org/mozilla-central/search?string=GetLastSensibleColumn MXR Search] Code Size: 40, ^
=== embedding/components/windowwatcher ===
====nsIScriptGlobalObject* nsWWJSUtils::GetStaticScriptGlobal(JSContext*,JSObject*)====
[http://mxr.mozilla.org/mozilla-central/source/embedding/components/windowwatcher/src/nsWWJSUtils.h#53 Declaration] [http://mxr.mozilla.org/mozilla-central/source/embedding/components/windowwatcher/src/nsWWJSUtils.cpp#50 Definition] [http://mxr.mozilla.org/mozilla-central/search?string=GetStaticScriptGlobal MXR Search]
Code Size: 45, Static method
====nsIScriptContext* nsWWJSUtils::GetStaticScriptContext(JSContext*,JSObject*)====
[http://mxr.mozilla.org/mozilla-central/source/embedding/components/windowwatcher/src/nsWWJSUtils.h#56 Declaration] [http://mxr.mozilla.org/mozilla-central/source/embedding/components/windowwatcher/src/nsWWJSUtils.cpp#98 Definition] [http://mxr.mozilla.org/mozilla-central/search?string=GetStaticScriptContext MXR Search]
Code Size: 10, Static method
 
=== modules/libpref===
====nsresult PREF_GetCharPref(const char*,char*,int*,PRBool)====
 
[http://mxr.mozilla.org/mozilla-central/source/modules/libpref/src/prefapi.cpp#397 Definition] [http://mxr.mozilla.org/mozilla-central/search?string=PREF_GetCharPref MXR Search]
 
Code Size: 47
=== gfx/thebes/public ===
<del>
Path info: MapCharToGlyph calls MapCharToGlyphFormat4
Code Size: 11, Static method, class marked THEBES_API
</del>
=== gfx/src/thebes ===
Path info: GetTextDimensions calls GetTextDimensionsInternal
==== nsresult nsThebesRenderingContext::GetTextDimensions(const PRUnichar*,PRInt32,PRInt32,PRInt32*,PRInt32,nsTextDimensions&,PRInt32&,nsTextDimensions&,PRInt32*)====
[http://mxr.mozilla.org/mozilla-central/search?string=GetTextDimensions MXR Search]
Code Size: 56
==== nsresult nsThebesRenderingContext::GetTextDimensionsInternal(const PRUnichar*,PRInt32,PRInt32,PRInt32*,PRInt32,nsTextDimensions&,PRInt32&,nsTextDimensions&,PRInt32*) ====
[http://mxr.mozilla.org/mozilla-central/search?string=GetTextDimensionsInternal MXR Search]
Code Size: 2
==== void nsRenderingContext::InvertRect(nscoord, nscoord, nscoord, nscoord) ====
[http://mxr.mozilla.org/mozilla-central/search?string=InvertRect MXR Search]
=== modules/libpr0n ===
<del>
====PRUint32 imgFrame::GetImageBytesPerRow()====
Code Size: 11
</del>
====PRInt32 imgFrame::GetHeight()====
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
====nsresult nsTextServicesDocument::GetDocument(nsIDOMDocument**)==== loc: editor/txtsvc/src/nsTextServicesDocument.h [http://mxr.mozilla.org/mozilla-central/contentsearch?string=%5B%5Ea-zA-Z0-9%5DGetDocument%5C%2528&regexp=on&case=on MXR Search] Code Size: 0, virtual ====nsresult nsITextServicesDocument::GetDocument(nsIDOMDocument**)==== loc: editor/txtsvc/public/nsITextServicesDocument.h [http://mxr.mozilla.org/mozilla-central/eventssearch?string=%5B%5Ea-zA-Z0-9%5DGetDocument%5C%2528&regexp=on&case=on MXR Search] Code Size: 0, virtual '''API?'''
====nsresult nsPrivateTextRangensDOMSubtreeIterator::SetRangeTypeInit(PRUint16nsIDOMNode*)==== loc: editor/libeditor/base/nsEditorUtils.h [http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DInit%5C%2528&regexp=on&case=on MXR Search] Code Size: 30 ====void nsDOMIterator::ForEach(nsDomIterFunctor&)====
[httploc:editor/libeditor/mxr.mozillabase/nsEditorUtils.org/mozilla-central/search?string=SetRangeType MXR Search]h
Code Size[http: 3//mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DForEach%5C%2528&regexp=on&case=on MXR Search]
====nsresult nsPrivateTextRangeCode Size::SetRangeEnd(PRUint16)====42
[http====void* nsDomIterFunctor:://mxr.mozilla.org/mozilla-central/search?stringoperator()(nsIDOMNode*)====SetRangeEnd MXR Search]
Code Sizeloc: 3editor/libeditor/base/nsEditorUtils.h
====nsresult nsPrivateTextRange[http::SetRangeStart(PRUint16)=//mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5Doperator%5C%2528&regexp=on&case=on MXR Search]
[httpCode Size://mxr.mozilla.org/mozilla-central/search?string=SetRangeStart MXR Search]0, virtual
Code Size====nsresult EditAggregateTxn: 3:GetCount(PRUint32*)====
===mozillaloc: editor/contentlibeditor/xslt===base/EditAggregateTxn.h
====MBool txDouble[http::isNeg(double)=//mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetCount%5C%2528&regexp=on&case=on MXR Search]
[httpCode Size://mxr.mozilla.org/mozilla-central/search?string=isNeg MXR Search]7, virtual
Code Size====nsresult EditAggregateTxn: 5:GetTxnAt(PRInt32, EditTxn**)====
====PRInt32 txNamespaceMaploc::lookupNamespace(const nsAString_internal&)====editor/libeditor/base/EditAggregateTxn.h
[http://mxr.mozilla.org/mozilla-central/search?string=lookupNamespace %5B%5Ea-zA-Z0-9%5DGetTxnAt%5C%2528&regexp=on&case=on MXR Search]
Code Size: 827, virtual
Note====nsresult EditAggregateTxn: Only lookupNamespace:SetName(nsIAtom*) is used====
====txXPathNode* txXPathNodeUtilsloc::getDocument(const txXPathNode&)====editor/libeditor/base/EditAggregateTxn.h
[http://mxr.mozilla.org/mozilla-central/search?string=getDocument %5B%5Ea-zA-Z0-9%5DSetName%5C%2528&regexp=on&case=on MXR Search]
Code Size: 117, virtual
====PRBool txEarlyEvalContext✓ nsresult nsHTMLEditor::isStripSpaceAllowedGetBlockSection(const txXPathNode&nsIDOMNode*, nsIDOMNode**, nsIDOMNode**)====
[httploc:editor/libeditor/mxr.mozillahtml/nsHTMLEditor.org/mozilla-central/search?string=isStripSpaceAllowed MXR Search]h
Code Size[http: 2//mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetBlockSection%5C%2528&regexp=on&case=on MXR Search]
====PRBool txExecutionStateCode Size::isStripSpaceAllowed(const txXPathNode&)====127, static, called by GetBlockSectionsForRange
[http====✓ nsresult nsHTMLEditor:://mxr.mozilla.org/mozilla-central/search?stringGetBlockSectionsForRange(nsIDOMRange*, nsCOMArray&)====isStripSpaceAllowed MXR Search]
Code Sizeloc: 6editor/libeditor/html/nsHTMLEditor.h
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetBlockSectionsForRange%5C%2528&regexp===PRBool txXSLTParamContext::isStripSpaceAllowed(const txXPathNodeon&)===case=on MXR Search]
[httpCode Size://mxr.mozilla.org/mozilla-central/search?string=isStripSpaceAllowed MXR Search]189, static
Code Size====nsresult nsHTMLEditor: 2:IsRootTag(nsString&, PRBool&)====
Noteloc: Difficult to check but all PRBool isStripSpaceAllowed functions are dead. There are a number of MBool isStripSpaceAllowed functions which are not, howevereditor/libeditor/html/nsHTMLEditor.h
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DIsRootTag%5C%2528&regexp===nsresult txResultRecycler::getNodeSet(const txXPathNodeon&,txNodeSet**)===case=on MXR Search]
[httpCode Size://mxr.mozilla.org/mozilla-central/search?string=getNodeSet MXR Search]16, virtual
Code Size====nsresult TypeInState: 29:SetProp(nsIAtom*)====
===mozillaloc: editor/contentlibeditor/xul===html/TypeInState.h
====PRBool TestNode[http::HasAncestor(const ReteNode*)=//mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DSetProp%5C%2528&regexp=on&case=on MXR Search]
[httpCode Size://mxr.mozilla.org/mozilla-central/search?string=HasAncestor MXR Search]5
Code Size====nsresult TypeInState: 11:SetProp(nsIAtom*, const nsString&)====
====PRBool nsXULDocumentloc::ContextStack::IsInsideXULTemplate()====editor/libeditor/html/TypeInState.h
[http://mxr.mozilla.org/mozilla-central/search?string=IsInsideXULTemplate %5B%5Ea-zA-Z0-9%5DSetProp%5C%2528&regexp=on&case=on MXR Search]
Code Size: 164
===mozilla/content/xbl=nsresult TypeInState::ClearProp(nsIAtom*)====
====nsCOMArray* nsXBLPrototypeBindingloc::GetStyleSheets()====editor/libeditor/html/TypeInState.h
[http://mxr.mozilla.org/mozilla-central/search?string=HandleScriptError %5B%5Ea-zA-Z0-9%5DClearProp%5C%2528&regexp=on&case=on MXR Search]
Code Size: 64
===mozilla/dom=nsresult TypeInState::GetTypingState(PRBool&, PRBool&, nsIAtom*, const nsString&)====
====nsresult nsIScriptGlobalObjectloc::HandleScriptError(nsScriptErrorEvent*,nsEventStatus*)====editor/libeditor/html/TypeInState.h
[http://mxr.mozilla.org/mozilla-central/search?string=HandleScriptError %5B%5Ea-zA-Z0-9%5DGetTypingState%5C%2528&regexp=on&case=on MXR Search]
Code Size: 3
===mozilla/content/canvas=PRBool nsHTMLEditUtils::IsAddress(nsIDOMNode*)====
<s>====PRUint32 mozillaloc::SimpleBuffer::ElementSize()====editor/libeditor/html/nsHTMLEditUtils.h
[http://mxr.mozilla.org/mozilla-central/search?string=ElementSize %5B%5Ea-zA-Z0-9%5DIsAddress%5C%2528&regexp=on&case=on MXR Search]
Code Size: 264, static ====nsresult nsHTMLEditRules::DidDeleteRange(nsIDOMRange*)==== loc: editor/libeditor/html/nsHTMLEditRules.h [http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DDidDeleteRange%5C%2528&regexp=on&case=on MXR Search]
====void mozillaCode Size::SimpleBuffer::Prepare(PRUint32,PRUint322,PRUint32)====virtual
[http====nsresult nsHTMLEditRules:://mxr.mozilla.org/mozilla-central/search?stringWillDeleteRange(nsIDOMRange*)====Prepare MXR Search]
Code Sizeloc: 9editor/libeditor/html/nsHTMLEditRules.h
====void [http://mxr.mozilla.org/mozilla::SimpleBuffer::EnsureCapacity(PRBool,PRUint32)=-central/search?string=%5B%5Ea-zA-Z0-9%5DWillDeleteRange%5C%2528&regexp=on&case=on MXR Search]
[httpCode Size://mxr.mozilla.org/mozilla-central/search?string=EnsureCapacity MXR Search]6, virtual
Code Size====nsresult : 19:NS_NewComposerCommandsUpdater(nsISelectionListener**)====
====PRBool mozillaloc::SimpleBuffer::InitFromJSArray(PRUint32,PRUint32,JSContext*,JSObject*,jsuint)====editor/composer/src/nsComposerCommandsUpdater.cpp
[http://mxr.mozilla.org/mozilla-central/search?string=InitFromJSArray NS_NewComposerCommandsUpdater MXR Search]
Code Size: 127</s>15
Note: SimpleBuffer has been removed in a recent revision'''API?'''
===mozilla/security/manager/ssl===
Path Info:
[http://mxr.mozilla.org/mozilla-central/search?string=AsyncVerifySignature MXR Search]
Code Size: 3(It will also take two nsCOMPtr::operator=' along with it, both with code size 5) ====void nsNSSCertTrust::SetTrustedServerCA()==== loc: security/manager/ssl/src/nsNSSCertTrust.h [http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DSetTrustedServerCA%5C%2528&regexp=on&case=on MXR Search] Code Size: 4 ====void nsNSSCertTrust::SetTrustedCA()==== loc: security/manager/ssl/src/nsNSSCertTrust.h [http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DSetTrustedCA%5C%2528&regexp=on&case=on MXR Search] Code Size: 4 ====void nsNSSCertTrust::SetTrustedPeer()==== loc: security/manager/ssl/src/nsNSSCertTrust.h [http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DSetTrustedPeer%5C%2528&regexp=on&case=on MXR Search] Code Size: 4 ====void nsNSSCertTrust::SetUser()==== loc: security/manager/ssl/src/nsNSSCertTrust.h [http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DSetUser%5C%2528&regexp=on&case=on MXR Search] Code Size: 4 ====PRBool nsNSSCertTrust::HasCA(PRBool, PRBool, PRBool)==== loc: security/manager/ssl/src/nsNSSCertTrust.h [http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DHasCA%5C%2528&regexp=on&case=on MXR Search] Code Size: 29 ====PRBool nsNSSCertTrust::HasUser(PRBool, PRBool, PRBool)==== loc: security/manager/ssl/src/nsNSSCertTrust.h [http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DHasUser%5C%2528&regexp=on&case=on MXR Search] Code Size: 29 ====void nsX509CertValidity::nsX509CertValidity()==== loc: security/manager/ssl/src/nsNSSCertValidity.h [http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DnsX509CertValidity%5C%2528&regexp=on&case=on MXR Search] Code Size: 7 ====nsresult nsNSSSocketInfo::SetExternalErrorReporting(PRBool)==== loc: security/manager/ssl/src/nsNSSIOLayer.h [http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DSetExternalErrorReporting%5C%2528&regexp=on&case=on MXR Search] Code Size: 4 ====nsresult nsNSSSocketInfo::GetForSTARTTLS(PRBool*)====
Also Noteloc: AsyncVerifySignature is the only caller of these two operators in mozillasecurity/xpcommanager/glue:ssl/src/nsNSSIOLayer.h
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetForSTARTTLS%5C%2528&regexp===nsCOMPtron& nsCOMPtr::operator=(nsICMSMessage*)===case=on MXR Search]
Code Size: 5
====nsCOMPtr& nsCOMPtrnsresult nsNSSSocketInfo::operator=GetForSTARTTLS(nsISMimeVerificationListenerPRBool*)==== loc: security/manager/ssl/src/nsNSSIOLayer.h [http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetForSTARTTLS%5C%2528&regexp=on&case=on MXR Search]
Code Size: 5
===mozilla/intl=nsresult nsNSSSocketInfo::GetFileDescPtr(PRFileDesc**)==== loc: security/manager/ssl/src/nsNSSIOLayer.h
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetFileDescPtr%5C%2528&regexp=on&case=on MXR Search] Code Size: 4 ====nsresult nsNSSSocketInfo::GetCert(nsIX509Cert**)==== loc: security/manager/ssl/src/nsNSSIOLayer.h [http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetCert%5C%2528&regexp=on&case=on MXR Search] Code Size: 11 ====PRBool nsNSSActivityState::isBlockingUIActive()==== loc: security/manager/ssl/src/nsNSSShutDown.h [http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DisBlockingUIActive%5C%2528&regexp=on&case=on MXR Search] Code Size: 8 ====nsresult nsCRMFObject::init()==== loc: security/manager/ssl/src/nsCrypto.h [http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5Dinit%5C%2528&regexp=on&case=on MXR Search] Code Size: 2 ====PRBool ::confirm_user(const PRUnichar*)==== loc: security/manager/ssl/src/nsCrypto.cpp [http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5Dconfirm_user%5C%2528&regexp=on&case=on MXR Search] Code Size: 36 ====void nsCRLInfo::nsCRLInfo()==== loc: security/manager/ssl/src/nsCRLInfo.h [http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DnsCRLInfo%5C%2528&regexp=on&case=on MXR Search] Code Size: 20 ====void nsOCSPResponder::nsOCSPResponder()==== loc: security/manager/ssl/src/nsOCSPResponder.h [http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DnsOCSPResponder%5C%2528&regexp=on&case=on MXR Search] Code Size: 10 ====void nsCertTreeDispInfo::nsCertTreeDispInfo(nsCertTreeDispInfo&)==== loc: security/manager/ssl/src/nsCertTree.h [http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DnsCertTreeDispInfo%5C%2528&regexp=on&case=on MXR Search] Code Size: 29 ====nsresult nsNSSComponent::RememberCert(CERTCertificate*)==== loc: security/manager/ssl/src/nsNSSComponent.h [http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DRememberCert%5C%2528&regexp=on&case=on MXR Search] Code Size: 0, virtual ====nsresult nsINSSComponent::RememberCert(CERTCertificate*)==== loc: security/manager/ssl/src/nsNSSComponent.h [http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DRememberCert%5C%2528&regexp=on&case=on MXR Search] Code Size: 0, virtual ====nsresult nsNSSComponent::NSSBundleFormatStringFromName(const char*, const PRUnichar**, PRUint32, nsAString_internal&)==== loc: security/manager/ssl/src/nsNSSComponent.h [http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DNSSBundleFormatStringFromName%5C%2528&regexp=on&case=on MXR Search] Code Size: 0, virtual ====nsresult nsINSSComponent::NSSBundleFormatStringFromName(const char*, const PRUnichar**, PRUint32, nsAString_internal&)==== loc: security/manager/ssl/src/nsNSSComponent.h [http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DNSSBundleFormatStringFromName%5C%2528&regexp=on&case=on MXR Search] Code Size: 0, virtual And a bunch more.... Probably should deal with security stuff last, if at all ===intl=== ====nsresult nsCaseConversionImp2::ToTitle(const PRUnichar*,PRUnichar*,PRUint32,PRBool)==== [http://mxr.mozilla.org/mozilla-central/search?string=ToTitle&case=on MXR Search] Code Size: 42 Note: Must also be removed from nsICaseConversion ====✓ 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
 
====✓ nsresult nsDetectionAdaptor::ProcessTokens()====
 
[http://mxr.mozilla.org/mozilla-central/search?string=ProcessTokens MXR Search]
 
Code Size: 2
 
====✓ nsresult nsDetectionAdaptor::WillAddToken(CToken&)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=WillAddToken MXR Search]
 
Code Size: 2
 
Note: ProcessTokens and WillAddTokens must be removed from nsIParserFilter as well.
 
====nsDebugDetector::nsDebugDetector(nsDebugDetectorSel)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=nsDebugDetector&case=1 MXR Search]
 
Code Size: 10
 
===dom===
 
====nsresult nsIScriptGlobalObject::HandleScriptError(nsScriptErrorEvent*,nsEventStatus*)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=HandleScriptError MXR Search]
 
Code Size: 3
 
====void nsJSContext::SetDefaultLanguageVersion(PRUint32)====
 
loc: dom/base/nsJSEnvironment.h
 
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DSetDefaultLanguageVersion%5C%2528&regexp=on&case=on MXR Search]
 
Code Size: 0, virtual
 
====void nsIScriptContext::SetDefaultLanguageVersion(PRUint32)====
 
loc: dom/base/nsIScriptContext.h
 
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DSetDefaultLanguageVersion%5C%2528&regexp=on&case=on MXR Search]
 
Code Size: 0, virtual
 
===parser===
 
====void nsCParserNode::SetGenericState(PRBool)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=SetGenericState MXR Search]
 
Code Size: 3
 
====PRBool nsCParserNode::GetGenericState()====
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetGenericState MXR Search]
 
Code Size: 3
 
====const nsAString_internal& nsCParserNode::GetTagName()====
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetGenericState MXR Search]
 
Code Size: 3
 
====void nsCParserNode::GetSource(nsString&)====
 
Code Size: 22
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetSource MXR Search]
 
====void nsCParserStartNode::GetSource(nsString&)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetSource MXR Search]
 
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()====
 
[http://mxr.mozilla.org/mozilla-central/search?string=PopEntry MXR Search]
 
Code Size: 7
 
====nsTagEntry* nsDTDContext::PopEntry()====
 
[http://mxr.mozilla.org/mozilla-central/search?string=PopEntry MXR Search]
 
Code Size: 7
 
====nsCParserNode* nsDTDContext::PopStyle()====
 
[http://mxr.mozilla.org/mozilla-central/search?string=PopStyle MXR Search]
 
Code Size: 18
 
====nsTagEntry* nsDTDContext::LastEntry()====
 
[http://mxr.mozilla.org/mozilla-central/search?string=LastEntry MXR Search]
 
Code Size: 6
 
====nsHTMLTag nsEntryStack::First()====
 
[http://mxr.mozilla.org/mozilla-central/search?string=First MXR Search]
 
Code Size: 7
 
====nsHTMLTag nsDTDContext::First()====
 
[http://mxr.mozilla.org/mozilla-central/search?string=First MXR Search]
 
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===
 
There is a tonne of dead ipc/chromium stuff not listed here. I'm operating on the assumption it will be too much of a hassle to deal with.
 
====bool mozilla::ipc::GeckoChildProcessHost::AsyncLaunch(vector)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=AsyncLaunch MXR Search]
 
Code Size: 17
 
===widget===
 
====PRBool confirm_overwrite_file(GtkWidget*,nsILocalFile*)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=confirm_overwrite_file MXR Search]
 
Code Size: 95
 
====nsresult nsDeviceContextSpecGTK::GetPrintMethod(PrintMethod&)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetPrintMethod MXR Search]
 
Code Size: 4
 
====void nsPrinterFeatures::SetMultipleConcurrentDeviceContextsSupported(PRBool)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=SetMultipleConcurrentDeviceContextsSupported MXR Search]
 
Code Size: 2
 
====nsCursor nsBaseWidget::GetCursor()====
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetCursor MXR Search]
 
Code Size: 2
 
Note: Must also be removed from nsIWidget.
 
===extensions===
 
====nsresult nsCyrXPCOMStringDetector::DoIt(const char*,PRUint32,const char**,nsDetectionConfident&)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=DoIt(&case=1 MXR Search]
 
Code Size: 19
 
====nsresult nsXPCOMStringDetector::DoIt(const char*,PRUint32,const char**,nsDetectionConfident&)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=DoIt(&case=1 MXR Search]
 
Code Size: 32
 
===view===
 
====✓ nsIntPoint nsIView::GetScreenPosition()====
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetScreenPosition MXR Search]
 
Code Size: 39
 
====✓ nsresult nsViewManager::GetViewObserver(nsIViewObserver*&)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetViewObserver MXR Search]
 
Code Size: 16
 
====✓ void nsView::SetPositionIgnoringChildWidgets(nscoord,nscoord)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=SetPositionIgnoringChildWidgets MXR Search]
 
Code Size: 14
 
====✓ nsresult nsViewManager::MoveViewBy(nsIView*,nscoord,nscoord)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=MoveViewBy MXR Search]
 
Code Size: 14
 
<del>
====nsresult nsViewManager::InsertChild(nsIView*,nsIView*,PRInt32)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=InsertChild(&case=1 MXR Search]
 
Code Size: 10
</del>
 
====PRBool nsIView::ExternalIsRoot()====
 
[http://mxr.mozilla.org/mozilla-central/search?string=ExternalIsRoot MXR Search]
 
Code Size: 3
 
Note: Used in an NS_ASSERTION [http://mxr.mozilla.org/mozilla-central/source/view/public/nsIView.h#155 here]. Why not just call nsIView::IsRoot?
 
 
====void nsIPresShell::SetVerifyReflowEnable(PRBool)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=SetVerifyReflowEnable MXR Search] (called by ifdef DEBUG code)
 
Code Size: 2
 
====PRBool nsIPresShell::GetVerifyReflowEnable()====
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetVerifyReflowEnable MXR Search] (called by ifdef DEBUG code)
 
Code Size: 2
 
===layout/style===
 
====nsresult nsHTMLStyleSheet::GetType(nsString&)====
 
loc: layout/style/nsHTMLStyleSheet.h
 
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetType%5C%2528&regexp=on&case=on MXR Search]
 
Code Size: 0, virtual
 
====nsresult nsIStyleSheet::GetType(nsString&)====
 
loc: layout/style/nsIStyleSheet.h
 
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetType%5C%2528&regexp=on&case=on MXR Search]
 
Code Size: 0, virtual
 
====nsresult nsCSSStyleSheet::GetType(nsString&)====
 
loc: layout/style/nsCSSStyleSheet.h
 
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetType%5C%2528&regexp=on&case=on MXR Search]
 
Code Size: 0, virtual
 
====nsresult nsHTMLCSSStyleSheet::GetType(nsString&)====
 
loc: layout/style/nsHTMLCSSStyleSheet.h
 
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetType%5C%2528&regexp=on&case=on MXR Search]
 
Code Size: 4, virtual
 
====nsresult nsHTMLStyleSheet::GetParentSheet(nsIStyleSheet*&)====
 
loc: layout/style/nsHTMLStyleSheet.h
 
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetParentSheet%5C%2528&regexp=on&case=on MXR Search]
 
Code Size: 0, virtual
 
====nsresult nsIStyleSheet::GetParentSheet(nsIStyleSheet*&)====
 
loc: layout/style/nsIStyleSheet.h
 
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetParentSheet%5C%2528&regexp=on&case=on MXR Search]
 
Code Size: 0, virtual
 
====nsresult nsCSSStyleSheet::GetParentSheet(nsIStyleSheet*&)====
 
loc: layout/style/nsCSSStyleSheet.h
 
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetParentSheet%5C%2528&regexp=on&case=on MXR Search]
 
Code Size: 0, virtual
 
====nsresult nsHTMLCSSStyleSheet::GetParentSheet(nsIStyleSheet*&)====
 
loc: layout/style/nsHTMLCSSStyleSheet.h
 
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetParentSheet%5C%2528&regexp=on&case=on MXR Search]
 
Code Size: 3, virtual
 
===layout/inspector===
 
====void inSearchLoop::inSearchLoop(inISearchProcess*)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=inSearchLoop 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 [http://mxr.mozilla.org/mozilla-central/source/layout/inspector/src/Makefile.in#52 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 [https://developer.mozilla.org/en/DOM_Inspector/Introduction_to_DOM_Inspector 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**)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetGlobalServiceManager MXR Search]
 
Code Size: 15
 
====nsresult nsServiceManager::ShutdownGlobalServiceManager(nsIServiceManager**)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=ShutdownGlobalServiceManager MXR Search]
 
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 [http://mxr.mozilla.org/mozilla-central/source/xpcom/base/nsITraceRefcnt.idl#43 idl file] lists the classes status as frozen (and deprecated).
 
== Called by NS_ASSERTIONs/ifdefine DEBUG etc ==
 
===layout/style===
 
====PRBool nsCSSPseudoElements::IsPseudoElement(nsIAtom*)====
 
loc: layout/style/nsCSSPseudoElements.h
 
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DIsPseudoElement%5C%2528&regexp=on&case=on MXR Search]
 
Code Size: 3, static
 
== Shouldn't be cross platform ==
 
 
===profiles===
 
====nsresult nsProfileDirServiceProvider::SetProfileDir(nsIFile*, nsIFile*)====
 
loc: profile/dirserviceprovider/public/nsProfileDirServiceProvider.h
 
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DSetProfileDir%5C%2528&regexp=on&case=on MXR Search]
 
Code Size: 112, virtual -- Called in embedding/tests/winEmbed/winEmbed.cpp
 
 
====nsresult nsProfileDirServiceProvider::InitProfileDir(nsIFile*)====
 
loc: profile/dirserviceprovider/public/nsProfileDirServiceProvider.h
 
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DInitProfileDir%5C%2528&regexp=on&case=on MXR Search]
 
Code Size: 142
 
====nsresult nsProfileDirServiceProvider::InitNonSharedProfileDir()====
 
loc: profile/dirserviceprovider/public/nsProfileDirServiceProvider.h
 
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DInitNonSharedProfileDir%5C%2528&regexp=on&case=on MXR Search]
 
Code Size: 87
 
====nsresult nsProfileDirServiceProvider::UndefineFileLocations()====
 
loc: profile/dirserviceprovider/public/nsProfileDirServiceProvider.h
 
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DUndefineFileLocations%5C%2528&regexp=on&case=on MXR Search]
 
Code Size: 77
 
====nsresult ::NS_NewProfileDirServiceProvider(PRBool, nsProfileDirServiceProvider**)====
 
loc: profile/dirserviceprovider/src/nsProfileDirServiceProvider.cpp
 
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DNS_NewProfileDirServiceProvider%5C%2528&regexp=on&case=on MXR Search]
 
Code Size: 31
 
====void nsProfileDirServiceProvider::nsProfileDirServiceProvider(PRBool)====
 
loc: profile/dirserviceprovider/public/nsProfileDirServiceProvider.h
 
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DnsProfileDirServiceProvider%5C%2528&regexp=on&case=on MXR Search]
 
Code Size: 18
 
== False Positives/Stuff that shouldn't be dealt with ==
 
=== accessible ===
 
These are all inherit from a template base class so these individual methods are unuded but removing them requires a major design change
 
====PRBool nsFontSizeTextAttr::GetValueFor(nsIDOMElement*,nscoord*)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetValueFor%28&case=1 MXR Search]
 
Code Size: 8
 
====PRBool nsBGColorTextAttr::GetValueFor(nsIDOMElement*,nscolor*)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetValueFor%28&case=1 MXR Search]
 
Code Size: 7
 
====PRBool nsFontWeightTextAttr::GetValueFor(nsIDOMElement*,PRInt32*)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetValueFor%28&case=1 MXR Search]
 
Code Size: 8
 
Path info: GetValue calls nsCSSTextAttr::Format
 
====PRBool nsTextAttr::GetValue(nsAString_internal&,int)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetValue this search]
 
Code Size: 26
 
====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
 
===layout/xul===
 
====gfxContext* nsContextBoxBlur::GetContext()====
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetContext()&case=1 MXR Search]
 
Code Size: 4
 
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
 
====nsCSSProperty nsCSSProps::LookupProperty(const nsACString_internal&)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-z_A-Z%5DLookupProperty%5C%2528&regexp=1&case=1&find=&findi=&filter=%5E%5B%5E%5C0%5D*%2524&hitlimit=&tree=mozilla-central MXR Search] Only nsAString version used (maybe)
 
Code Size: 5
 
====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
 
====nsCSSKeyword nsCSSKeywords::LookupKeyword(const nsACString_internal&)====
 
loc: layout/style/nsCSSKeywords.h
 
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DLookupKeyword%5C%2528&regexp=on&case=on MXR Search]
 
Code Size: 7, static, nsAString version used
 
====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
 
===content/html===
 
====nsresult nsGenericHTMLElement::SetFloatAttr(nsIAtom*,float)====
 
Code Size: 6
 
[http://mxr.mozilla.org/mozilla-central/search?string=SetFloatAttr MXR Search] * Will be used for HTML5
 
====nsresult nsGenericHTMLElement::GetFloatAttr(nsIAtom*,float,float*)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetFloatAttr MXR Search] * Will be used for HTML5
 
Code Size: 15
 
====nsresult nsHTMLDNSPrefetch::PrefetchHigh(nsAString_internal&)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=PrefetchHigh MXR Search] * - Meant as forward looking API
 
Code Size: 3
 
====nsresult nsHTMLDNSPrefetch::PrefetchHigh(Link*)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=PrefetchHigh MXR Search] * - Meant as forward looking API
 
Code Size: 3
 
====nsresult nsHTMLDNSPrefetch::PrefetchMedium(nsAString_internal&)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=PrefetchMedium MXR Search] * - Meant as forward looking API
 
Code Size: 3
 
====nsresult nsHTMLDNSPrefetch::PrefetchMedium(Link*)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=PrefetchMedium MXR Search] * - Meant as forward looking API
 
Code Size: 3
1
edit

Navigation menu