Changes

Jump to: navigation, search

User:Egmetcalfe/Dead Code

5,477 bytes added, 10:40, 10 December 2011
view: Update
==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)
=== content/html ===
====void nsGenericHTMLElement::GetHrefURIToMutate(nsIURI**)====
[http://mxr.mozilla.org/mozilla-central/search?string=GetHrefURIToMutate MXR Search] *
Code Size: 3
====nsresult nsGenericHTMLElement✓ PRBool SinkContext::SetFloatAttrIsAncestorContainer(nsIAtom*,floatnsHTMLTag)====
Code Size[http: 6//mxr.mozilla.org/mozilla-central/search?string=IsAncestorContainer MXR Search] *
[httpCode Size://mxr.mozilla.org/mozilla-central/search?string=SetFloatAttr MXR Search] (One use in a dead macro) *13
====nsresult nsGenericHTMLElementnsHTMLFragmentContentSink::GetFloatAttrAddTextToContent(nsIAtomnsIContent*,float,float*const nsAString_internal&)====
[http://mxr.mozilla.org/mozilla-central/search?string=GetFloatAttr AddTextToContent MXR Search] (One use in a dead macro) *
Code Size: 1526
====nsresult nsHTMLDNSPrefetch✓ void nsXHTMLContentSerializer::PrefetchHighAppendToString(const PRUnichar*, PRInt32, nsAString_internal&)====
[httploc:content/base/mxr.mozillasrc/nsXHTMLContentSerializer.org/mozilla-central/search?string=PrefetchHigh MXR Search] *h
Code Size[http: 3//mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DAppendToString%5C%2528&regexp=on&case=on MXR Search]
====nsresult nsHTMLDNSPrefetchCode Size::PrefetchHigh(Link*)====0, virtual
[http====✓ void nsXMLContentSerializer:://mxr.mozilla.org/mozilla-central/search?stringAppendToString(const PRUnichar*, PRInt32, nsAString_internal&)====PrefetchHigh MXR Search] *
Code Sizeloc: 3content/base/src/nsXMLContentSerializer.h
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DAppendToString%5C%2528&regexp===nsresult nsHTMLDNSPrefetch::PrefetchMedium(nsAString_internalon&)===case=on MXR Search]
[http://mxr.mozilla.org/mozilla-central/search?string=PrefetchMedium MXR Search] * Code Size: 3 ====nsresult nsHTMLDNSPrefetch::PrefetchMedium(Link*)==== [http://mxr.mozilla.org/mozilla-central/search?string=PrefetchMedium MXR Search] * Code Size: 3 ====PRBool SinkContext::IsAncestorContainer(nsHTMLTag)==== [http://mxr.mozilla.org/mozilla-central/search?string=IsAncestorContainer MXR Search] * Code Size: 13 ====nsresult nsHTMLFragmentContentSink::AddTextToContent(nsIContent*0,const nsAString_internal&)==== [http://mxr.mozilla.org/mozilla-central/search?string=AddTextToContent MXR Search] * Code Size: 26virtual
<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)
===content/media===
<del>
====nsresult nsMediaCacheStream::ReadFromCache(char*,PRInt64,PRInt64)====
Code Size: 82
</del>
===content/events===
===content/xslt===
<del>
====MBool txDouble::isNeg(double)====
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
====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&)====
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 txResultRecycler::getNodeSet(const 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=IsInsideXULTemplate MXR Search]
===content/xbl===
<del>
====nsCOMArray* nsXBLPrototypeBinding::GetStyleSheets()====
[http://mxr.mozilla.org/mozilla-central/search?string=HandleScriptError GetStyleSheets MXR Search]
Code Size: 6
</del>
===content/canvas===
<s>
====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
====void mozilla::CanvasUtils::LogMessagef(const char*)====
[http://mxr.mozilla.org/mozilla-central/search?string=LogMessagef MXR Search]
Code Size: 24
====void mozilla::CanvasUtils::LogMessage(const nsCString&)====
[http://mxr.mozilla.org/mozilla-central/search?string=LogMessage MXR Search] Difficult to verify
Code Size: 47
=== accessible === 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-centralmodules/search?stringplugin =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====bool mozilla: 52:plugins::parent::::_tostring(NPObject*,NPVariant*)====
====already_AddRefed nsAccUtils::QueryAccessibleTable(nsIAccessibleTable*)==== [http://mxr.mozilla.org/mozilla-central/search?string=QueryAccessibleTable %5B%5Ea-zA-Z%5D_tostring&regexp=on MXR Search]
Code Size: 7
====already_AddRefed nsCoreUtils::GetLastSensibleColumn(nsITreeBoxObject*)=accessible ===
[http====✓ const gchar* :://mxr.mozilla.org/mozilla-central/search?stringgetDocumentTypeCB(AtkDocument*)====GetLastSensibleColumn MXR Search]
Code Sizeloc: 40accessible/src/atk/nsMaiInterfaceDocument.cpp
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DgetDocumentTypeCB%5C%2528&regexp=on&case==PRBool nsFontSizeTextAttr::GetValueForon MXR Search] (nsIDOMElement*,nscoord*dead callback function - woohoo)====
[httpCode Size://mxr.mozilla.org/mozilla-central/search?string=GetValueFor%28&case=1 MXR Search]42
Code SizePath info: 8AddTargetFromChildrenHavingIDRefsAttr calls GetElementsHavingIDRefsAttr which calls GetElementsHavingIDRefsAttrImpl.
====PRBool nsBGColorTextAttr✓ void nsCoreUtils::GetValueForGetElementsHavingIDRefsAttrImpl(nsIDOMElementnsIContent*,nscolornsCString&,nsIAtom*,nsIMutableArray*)====
[http://mxr.mozilla.org/mozilla-central/search?string=GetValueFor%28&case=1 GetElementsHavingIDRefsAttrImpl MXR Search]
Code Size: 742, ^
====PRBool nsFontWeightTextAttr✓ void nsCoreUtils::GetValueForGetElementsHavingIDRefsAttr(nsIDOMElementnsIContent*,PRInt32nsIContent*,nsIAtom*,nsIArray**)====
[http://mxr.mozilla.org/mozilla-central/search?string=GetValueFor%28&case=1 GetElementsHavingIDRefsAttr MXR Search]
Code Size: 80? [http://mxr.mozilla.org/mozilla-central/source/accessible/src/base/nsCoreUtils.cpp#879 Really?], ^
Note====✓ nsresult nsRelUtils: A number of calls to GetValueFor functions are made where the second parameter has generic type ie T blah.:AddTargetFromChildrenHavingIDRefsAttr(PRUint32,nsIAccessibleRelation**,nsIContent*,nsIContent*,nsIAtom*)====
Path info[http: GetValue calls nsCSSTextAttr::Format//mxr.mozilla.org/mozilla-central/search?string=AddTargetFromChildrenHavingIDRefsAttr MXR Search]
====PRBool nsTextAttrCode Size::GetValue(nsAString_internal&52,int)====^
To verify run [http====✓ already_AddRefed nsAccUtils:://mxr.mozilla.org/mozilla-central/search?stringQueryAccessibleTable(nsIAccessibleTable*)====GetLastSensibleColumn this search] then grep for all lines that contain at least two commas
Code Size[http: 26//mxr.mozilla.org/mozilla-central/search?string=QueryAccessibleTable MXR Search]
NoteCode Size: Must also remove from nsITextAttr7, ^
These are too difficult too verify====✓ already_AddRefed nsCoreUtils::GetLastSensibleColumn(nsITreeBoxObject*)====
====void nsCSSTextAttr::Format(const nsAutoString&,nsAString_internal&)==== Code Size: 3 ====void nsTextAttr:[http:Format(const nsAutoString&,nsAString_internal&)//mxr.mozilla.org/mozilla-central/search?string==== Code Size: 0GetLastSensibleColumn MXR Search]
====void nsLangTextAttr::Format(const nsAutoString&,nsAString_internal&)==== Code Size: 740, ^
=== 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()====
===editor===
====nsresult nsHTMLCSSUtils::RemoveCSSProperty(nsIDOMElement*,const nsAString_internal&)====
[http://mxr.mozilla.org/mozilla-central/search?string=RemoveCSSProperty MXR Search]
Code Size: 28
===security=nsresult nsTextServicesDocument::GetDocument(nsIDOMDocument**)==== loc: editor/txtsvc/src/nsTextServicesDocument.h [http://mxr.mozilla.org/mozilla-central/search?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/search?string=%5B%5Ea-zA-Z0-9%5DGetDocument%5C%2528&regexp=on&case=on MXR Search] Code Size: 0, virtual '''API?''' ====nsresult nsDOMSubtreeIterator::Init(nsIDOMNode*)==== 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&)==== loc: editor/libeditor/base/nsEditorUtils.h [http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DForEach%5C%2528&regexp=on&case=on MXR Search] Code Size: 42 ====void* nsDomIterFunctor::operator()(nsIDOMNode*)==== loc: editor/libeditor/base/nsEditorUtils.h [http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5Doperator%5C%2528&regexp=on&case=on MXR Search] Code Size: 0, virtual ====nsresult EditAggregateTxn::GetCount(PRUint32*)==== loc: editor/libeditor/base/EditAggregateTxn.h [http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetCount%5C%2528&regexp=on&case=on MXR Search] Code Size: 7, virtual ====nsresult EditAggregateTxn::GetTxnAt(PRInt32, EditTxn**)==== loc: editor/libeditor/base/EditAggregateTxn.h [http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetTxnAt%5C%2528&regexp=on&case=on MXR Search] Code Size: 27, virtual ====nsresult EditAggregateTxn::SetName(nsIAtom*)==== loc: editor/libeditor/base/EditAggregateTxn.h [http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DSetName%5C%2528&regexp=on&case=on MXR Search] Code Size: 7, virtual ====✓ nsresult nsHTMLEditor::GetBlockSection(nsIDOMNode*, nsIDOMNode**, nsIDOMNode**)==== loc: editor/libeditor/html/nsHTMLEditor.h [http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetBlockSection%5C%2528&regexp=on&case=on MXR Search] Code Size: 127, static, called by GetBlockSectionsForRange ====✓ nsresult nsHTMLEditor::GetBlockSectionsForRange(nsIDOMRange*, nsCOMArray&)==== loc: editor/libeditor/html/nsHTMLEditor.h [http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetBlockSectionsForRange%5C%2528&regexp=on&case=on MXR Search] Code Size: 189, static ====nsresult nsHTMLEditor::IsRootTag(nsString&, PRBool&)==== loc: editor/libeditor/html/nsHTMLEditor.h [http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DIsRootTag%5C%2528&regexp=on&case=on MXR Search] Code Size: 16, virtual ====nsresult TypeInState::SetProp(nsIAtom*)==== loc: editor/libeditor/html/TypeInState.h [http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DSetProp%5C%2528&regexp=on&case=on MXR Search] Code Size: 5 ====nsresult TypeInState::SetProp(nsIAtom*, const nsString&)==== loc: editor/libeditor/html/TypeInState.h [http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DSetProp%5C%2528&regexp=on&case=on MXR Search] Code Size: 4 ====nsresult TypeInState::ClearProp(nsIAtom*)==== loc: editor/libeditor/html/TypeInState.h [http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DClearProp%5C%2528&regexp=on&case=on MXR Search] Code Size: 4 ====nsresult TypeInState::GetTypingState(PRBool&, PRBool&, nsIAtom*, const nsString&)==== loc: editor/libeditor/html/TypeInState.h [http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetTypingState%5C%2528&regexp=on&case=on MXR Search] Code Size: 3 ====PRBool nsHTMLEditUtils::IsAddress(nsIDOMNode*)==== loc: editor/libeditor/html/nsHTMLEditUtils.h [http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DIsAddress%5C%2528&regexp=on&case=on MXR Search] Code Size: 4, 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] Code Size: 2, virtual ====nsresult nsHTMLEditRules::WillDeleteRange(nsIDOMRange*)==== loc: editor/libeditor/html/nsHTMLEditRules.h [http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DWillDeleteRange%5C%2528&regexp=on&case=on MXR Search] Code Size: 6, virtual ====nsresult ::NS_NewComposerCommandsUpdater(nsISelectionListener**)==== loc: editor/composer/src/nsComposerCommandsUpdater.cpp [http://mxr.mozilla.org/managermozilla-central/sslsearch?string=NS_NewComposerCommandsUpdater MXR Search] Code Size: 15 '''API?''' ===security===
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
 
====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===
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: 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===
===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)====
===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)====
Code Size: 10
</del>
====PRBool nsIView::ExternalIsRoot()====
[http://mxr.mozilla.org/mozilla-central/search?string=SetPositionIgnoringChildWidgets 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?
===layout/xul===
 
====void nsBoxFrame::FireDOMEventSynch(const nsAString_internal&,nsIContent*)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=FireDOMEventSynch MXR Search]
 
Code Size: 46
 
====void nsGridRow::MarkDirty(nsBoxLayoutState&)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=MarkDirty&case=1 MXR Search]
 
Code Size: 16
 
====void nsBoxLayout::GetParentLayout(nsIBox*,nsIBoxLayout**)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetParentLayout MXR Search]
 
Code Size: 9
 
====nsGridRow* nsGrid::GetRows()====
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetRows(&case=on MXR Search]
 
Code Size: 3
 
====nsGridRow* nsGrid::GetColumns()====
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetColumns(&case=on MXR Search]
 
Code Size: 3
 
====nsresult nsMenuFrame::IsActive(PRBool&)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=IsActive%5C%2528%5B%5E%2529%5D&regexp=on&case=1 MXR Search]
 
Code Size: 3
 
====void nsBox::AddMargin(nsSize&)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=AddMargin&case=1 MXR Search]
 
Code Size: 3
 
===layout/base===
 
====nsIFrame* nsLayoutUtils::GetClosestCommonAncestorViaPlaceholders(nsIFrame*,nsIFrame*,nsIFrame*)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetClosestCommonAncestorViaPlaceholders MXR Search] (Calls itself)
 
Code Size: 62
 
====nsBidi::nsBidi(PRUint32,PRUint32)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=nsBidi(&case=1 MXR Search]
 
Code Size: 43
 
====nsIFrame* nsFrameManager::GetCanvasFrame()====
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetCanvasFrame MXR Search]
 
Code Size: 20
 
====nsresult nsBidiPresUtils::GetBidiEngine(nsBidi**)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetBidiEngine MXR Search]
 
Code Size: 8
 
====void nsDisplayList::DeleteBottom()====
 
[http://mxr.mozilla.org/mozilla-central/search?string=DeleteBottom MXR Search]
 
Code Size: 7
 
====void nsFrameManager::ClearUndisplayedContentMap()====
 
[http://mxr.mozilla.org/mozilla-central/search?string=ClearUndisplayedContentMap MXR Search]
 
Code Size: 5
 
====gfxContext* nsContextBoxBlur::GetContext()====
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetContext()&case=1 MXR Search] (Non-virtual function from a non-derived class: the script is probably right)
 
Code Size: 4
 
====PRInt32 nsIPresShell::GetVerifyReflowFlags()====
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetVerifyReflowFlags MXR Search]
 
Code Size: 2
====void nsIPresShell::SetVerifyReflowEnable(PRBool)====
[http://mxr.mozilla.org/mozilla-central/search?string=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 CSSLoaderImplnsHTMLStyleSheet::StopLoadingSheetGetType(nsIURI*nsString&)====
[httploc:layout/style/mxrnsHTMLStyleSheet.mozilla.org/mozilla-central/search?string=StopLoadingSheet MXR Search]h
Code Size[http: 96//mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetType%5C%2528&regexp=on&case=on MXR Search]
====StopLoadingSheetsByURIClosureCode Size::StopLoadingSheetsByURIClosure(nsIURI*0,nsTArray&)====virtual
[http====nsresult nsIStyleSheet:://mxr.mozilla.org/mozilla-central/search?string=StopLoadingSheetsByURIClosure MXR Search] GetType(called by StopLoadingSheetnsString&)====
Code Sizeloc: 3layout/style/nsIStyleSheet.h
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetType%5C%2528&regexp===PRBool ::langMatches(RuleProcessorDataon&,PRBool,nsPseudoClassList*)===case=on MXR Search]
[httpCode Size://mxr.mozilla.org/mozilla-central/search?string=langMatches MXR Search] (called by StopLoadingSheet)0, virtual
Code Size====nsresult nsCSSStyleSheet: 69:GetType(nsString&)====
====const nsString* RuleProcessorDataloc::GetLang()====layout/style/nsCSSStyleSheet.h
[http://mxr.mozilla.org/mozilla-central/search?string=GetLang %5B%5Ea-zA-Z0-9%5DGetType%5C%2528&regexp=on&case=on MXR Search] (called by StopLoadingSheet)
Code Size: 460, virtual
====PRBool mozSystemMetricMatchesnsresult nsHTMLCSSStyleSheet::GetType(RuleProcessorDatansString&,PRBool,nsPseudoClassList*)====
[httploc:layout/style/mxrnsHTMLCSSStyleSheet.mozilla.org/mozilla-central/search?string=mozSystemMetricMatches MXR Search]h
Code Size[http: //mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetType%5C%2528&regexp=on&case=on MXR Search]
====void nsCSSCornerSizesCode Size::SetAllCornersTo(const nsCSSValue&)====4, virtual
[http====nsresult nsHTMLStyleSheet:://mxr.mozilla.org/mozilla-central/search?string=SetAllCornersTo MXR Search] GetParentSheet(NS_HIDDENnsIStyleSheet*&)====
Code Sizeloc: 7layout/style/nsHTMLStyleSheet.h
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetParentSheet%5C%2528&regexp===nsCSSProperty nsCSSProps::LookupProperty(const nsACString_internalon&)===case=on MXR Search]
[httpCode Size://mxr.mozilla.org/mozilla-central/search?string=LookupProperty MXR Search] (Only nsAString version used)0, virtual
Code Size====nsresult nsIStyleSheet: 5:GetParentSheet(nsIStyleSheet*&)====
====nsresult CSSLoaderImplloc::GetPreferredSheet(nsAString_internal&)====layout/style/nsIStyleSheet.h
[http://mxr.mozilla.org/mozilla-central/search?string=GetPreferredSheet %5B%5Ea-zA-Z0-9%5DGetParentSheet%5C%2528&regexp=on&case=on MXR Search]
Code Size: 40, virtual
====nsCSSFontDesc nsCSSPropsnsresult nsCSSStyleSheet::LookupFontDescGetParentSheet(const nsACString_internalnsIStyleSheet*&)====
[httploc://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/TestCSSPropertyLookupnsCSSStyleSheet.cpp#75 this line]?)h
Code Size[http: 4//mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetParentSheet%5C%2528&regexp=on&case=on MXR Search]
====nsCSSKeyword nsCSSKeywordsCode Size::LookupKeyword(const nsACString_internal&)====0, virtual
[http====nsresult nsHTMLCSSStyleSheet://mxr.mozilla.org/mozilla-central/search?string=LookupKeyword MXR Search] :GetParentSheet(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]?nsIStyleSheet*&)====
Code Sizeloc: 7layout/style/nsHTMLCSSStyleSheet.h
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetParentSheet%5C%2528&regexp===nsCSSValueGradientStop::nsCSSValueGradientStop(const nsCSSValueGradientStopon&)===case=on MXR Search]
[httpCode Size://mxr.mozilla.org/mozilla-central/search?string=nsCSSValueGradientStop MXR Search] (Probably not a good idea to remove this)3, virtual
Code Size: 7===layout/inspector===
====nsCSSCornerSizesvoid inSearchLoop::nsCSSCornerSizesinSearchLoop(const nsCSSCornerSizes&inISearchProcess*)====
[http://mxr.mozilla.org/mozilla-central/search?string=nsCSSCornerSizes inSearchLoop MXR Search] (Probably not a good idea to remove thisThis'll take an nsCOMPtr::operator= along with it)
Code Size: 1311
====nsCSSValueListRect*** Upon further examination, the whole layout/inspector module seems unused. All of the classes from [http::nsCSSValueListRect//mxr.mozilla.org/mozilla-central/source/layout/inspector/src/Makefile.in#52 these files] end up in an NS_GENERIC_FACTORY_CONSTRUCTOR (const nsCSSValueListRect&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?
[http:===xpcom//mxr.mozilla.org/mozilla-central/search?stringcomponents===nsCSSValueListRect MXR Search] (Probably not a good idea to remove this)
Code Size: 9Don't know if this stuff can be touched
====void nsCSSValuensresult nsServiceManager::nsCSSValueGetGlobalServiceManager(nsCSSValueGradientnsIServiceManager**)====
Code Size[http: 5//mxr.mozilla.org/mozilla-central/search?string=GetGlobalServiceManager MXR Search]
====void nsCSSValueCode Size::nsCSSValue(Image*)====15
Code Size====nsresult nsServiceManager: 5:ShutdownGlobalServiceManager(nsIServiceManager**)====
====void nsCSSValue:[http:nsCSSValue(URL*)===//mxr.mozilla.org/mozilla-central/search?string=ShutdownGlobalServiceManager MXR Search]
Code Size: 52
====void nsCSSValue::nsCSSValue(Array*,nsCSSUnit)=xpcom/base===
Code Size====nsresult nsTraceRefcntImpl: 5:LogAddRef(void*,nsrefcnt,const char*,PRUint32) et al====
====void nsCSSValue6 of the functions of this class are dead but the [http::nsCSSValue//mxr.mozilla.org/mozilla-central/source/xpcom/base/nsITraceRefcnt.idl#43 idl file] lists the classes status as frozen (float,nsCSSUnitand deprecated)====.
Code Size: 5== Called by NS_ASSERTIONs/ifdefine DEBUG etc ==
[http:===layout//mxr.mozilla.org/mozilla-central/search?stringstyle===nsCSSValue( nsCSSValue( MXR Search] (Only the no-argument and nsCSSUnit constructors are used)
====nsresult nsHTMLStyleSheetPRBool nsCSSPseudoElements::GetLinkColorIsPseudoElement(nscolor&nsIAtom*)====
[httploc:layout/style/mxrnsCSSPseudoElements.mozilla.org/mozilla-central/search?string=GetLinkColor MXR Search]h
Code Size[http: 8//mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DIsPseudoElement%5C%2528&regexp=on&case=on MXR Search]
====nsresult nsHTMLStyleSheetCode Size::GetActiveLinkColor(nscolor&)====3, static
[http://mxr.mozilla.org/mozilla-central/search?string=GetActiveLinkColor MXR Search]= Shouldn't be cross platform ==
Code Size: 8
====nsresult nsHTMLStyleSheet::GetVisitedLinkColor(nscolor&)=profiles===
[http====nsresult nsProfileDirServiceProvider:://mxr.mozilla.org/mozilla-central/search?stringSetProfileDir(nsIFile*, nsIFile*)====GetVisitedLinkColor MXR Search]
Code Sizeloc: 8profile/dirserviceprovider/public/nsProfileDirServiceProvider.h
====PRBool nsCSSPseudoClasses[http::IsPseudoClass(nsIAtom*)=//mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DSetProfileDir%5C%2528&regexp=on&case=on MXR Search]
[httpCode Size:112, virtual -- Called in embedding/tests/winEmbed/mxrwinEmbed.mozilla.org/mozilla-central/search?string=IsPseudoClass MXR Search]cpp
Code Size: 3
====void nsCSSValuensresult nsProfileDirServiceProvider::SetRectIsAutoValueInitProfileDir(nsIFile*)====
[httploc:profile/dirserviceprovider/mxr.mozillapublic/nsProfileDirServiceProvider.org/mozilla-central/search?string=SetRectIsAutoValue MXR Search]h
Code Size[http: 3//mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DInitProfileDir%5C%2528&regexp=on&case=on MXR Search]
====PRBool nsCSSPseudoElementsCode Size::IsPseudoElement(nsIAtom*)====142
[http====nsresult nsProfileDirServiceProvider:://mxr.mozilla.org/mozilla-central/search?string=IsPseudoElement MXR Search] InitNonSharedProfileDir(One use in an NS_ASSERTION)====
Code Sizeloc: 3profile/dirserviceprovider/public/nsProfileDirServiceProvider.h
====nsresult nsCSSDeclaration::AppendComment(const nsAString_internal&)==== [http://mxr.mozilla.org/mozilla-central/search?string=AppendComment MXR Search] Code Size: 2 %5B%5Ea-zA-Z0-9%5DInitNonSharedProfileDir%5C%2528&regexp=on&case===PRInt32 RuleProcessorData::GetNthIndex(PRBool,PRBool,PRBool)==== [http://mxr.mozilla.org/mozilla-central/search?string=GetNthIndex on MXR Search] (Called by edgeChildMatches, nthChildGenericMatches, edgeOfTypeMatches)
Code Size: 87
====PRBool edgeOfTypeMatchesnsresult nsProfileDirServiceProvider::UndefineFileLocations(RuleProcessorData&,PRBool,PRBool,PRBool)====
[httploc:profile/dirserviceprovider/mxrpublic/nsProfileDirServiceProvider.mozilla.org/mozilla-central/search?string=edgeOfTypeMatches MXR Search] (Called by firstOfTypeMatches, lastOfTypeMatches, onlyOfTypeMatches) Code Size: 19h
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DUndefineFileLocations%5C%2528&regexp===PRBool nthChildGenericMatches(RuleProcessorDataon&,PRBool,nsPseudoClassList*,PRBool,PRBool)===case=on MXR Search]
[http://mxr.mozilla.org/mozilla-central/search?string=nthChildGenericMatches MXR Search] (Called by nthChildMatches, nthLastChildMatches, nthOfTypeMatches, nthLastOfTypeMatches) Code Size: 3077
====PRBool edgeChildMatchesnsresult ::NS_NewProfileDirServiceProvider(RuleProcessorData&,PRBool,PRBool,PRBoolnsProfileDirServiceProvider**)====
[httploc:profile/dirserviceprovider/mxr.mozillasrc/nsProfileDirServiceProvider.org/mozilla-central/search?string=edgeChildMatches MXR Search] (Called by firstChildMatches, lastChildMatches, onlyChildMatches)cpp
Code Size[http: 16//mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DNS_NewProfileDirServiceProvider%5C%2528&regexp=on&case=on MXR Search]
====PRBool onlyOfTypeMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)====Code Size: 31
[http====void nsProfileDirServiceProvider:://mxr.mozilla.org/mozilla-central/search?stringnsProfileDirServiceProvider(PRBool)====onlyOfTypeMatches MXR Search]
Code Sizeloc: 3profile/dirserviceprovider/public/nsProfileDirServiceProvider.h
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DnsProfileDirServiceProvider%5C%2528&regexp===PRBool lastOfTypeMatches(RuleProcessorDataon&,PRBool,nsPseudoClassList*)===case=on MXR Search]
[httpCode Size://mxr.mozilla.org/mozilla-central/search?string=lastOfTypeMatches MXR Search]18
Code Size: 3== False Positives/Stuff that shouldn't be dealt with ==
====PRBool firstOfTypeMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)=accessible ===
[http://mxr.mozilla.org/mozilla-central/search?string=firstOfTypeMatches MXR Search]These are all inherit from a template base class so these individual methods are unuded but removing them requires a major design change
Code Size====PRBool nsFontSizeTextAttr: 3:GetValueFor(nsIDOMElement*,nscoord*)====
[http://mxr.mozilla.org/mozilla-central/search?string====PRBool nthLastOfTypeMatches(RuleProcessorDataGetValueFor%28&,PRBool,nsPseudoClassList*)===case=1 MXR Search]
[httpCode Size://mxr.mozilla.org/mozilla-central/search?string=nthLastOfTypeMatches MXR Search]8
Code Size====PRBool nsBGColorTextAttr: 3:GetValueFor(nsIDOMElement*,nscolor*)====
[http://mxr.mozilla.org/mozilla-central/search?string====PRBool nthOfTypeMatches(RuleProcessorDataGetValueFor%28&,PRBool,nsPseudoClassList*)===case=1 MXR Search]
[httpCode Size://mxr.mozilla.org/mozilla-central/search?string=nthOfTypeMatches MXR Search]7
Code Size====PRBool nsFontWeightTextAttr: 3:GetValueFor(nsIDOMElement*,PRInt32*)====
[http://mxr.mozilla.org/mozilla-central/search?string====PRBool nthLastChildMatches(RuleProcessorDataGetValueFor%28&,PRBool,nsPseudoClassList*)===case=1 MXR Search]
[httpCode Size://mxr.mozilla.org/mozilla-central/search?string=nthLastChildMatches MXR Search]8
Code SizePath info: 3GetValue calls nsCSSTextAttr::Format
====PRBool nthLastChildMatchesnsTextAttr::GetValue(RuleProcessorDatansAString_internal&,PRBool,nsPseudoClassList*int)====
[http://mxr.mozilla.org/mozilla-central/search?string=nthLastChildMatches MXR SearchGetValue this search]
Code Size: 326
====PRBool nthChildMatchesvoid nsCSSTextAttr::Format(RuleProcessorDataconst nsAutoString&,PRBool,nsPseudoClassList*nsAString_internal&)==== [http://mxr.mozilla.org/mozilla-central/search?string=nthChildMatches MXR Search]
Code Size: 3
====PRBool onlyChildMatchesvoid nsTextAttr::Format(RuleProcessorDataconst nsAutoString&,PRBool,nsPseudoClassList*nsAString_internal&)====
[httpCode Size://mxr.mozilla.org/mozilla-central/search?string=onlyChildMatches MXR Search]0
Code Size====void nsLangTextAttr: 3:Format(const nsAutoString&,nsAString_internal&)====
====PRBool lastChildMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)====Code Size: 7
[http:===layout//mxr.mozilla.org/mozilla-central/search?stringxul===lastChildMatches MXR Search]
Code Size====gfxContext* nsContextBoxBlur: 3:GetContext()====
[http://mxr.mozilla.org/mozilla-central/search?string====PRBool firstChildMatchesGetContext(RuleProcessorData)&,PRBool,nsPseudoClassList*)===case=1 MXR Search]
[httpCode Size://mxr.mozilla.org/mozilla-central/search?string=firstChildMatches MXR Search]4
Code SizeNote: 3according 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===
====PRInt32 nsILineIteratornsRect nsIFrame::FindLineAtGetScreenRectInAppUnitsExternal(nscoord)====
Code Size[http: 0 (pure virtual)//mxr.mozilla.org/mozilla-central/search?string=GetScreenRectInAppUnitsExternal MXR Search] roc: may be used outside of tree
====PRInt32 nsLineIteratorCode Size::FindLineAt(nscoord)====3
Code Size: 27=== layout/style
====PRInt32 nsTableRowGroupFramensCSSFontDesc nsCSSProps::FindLineAtLookupFontDesc(nscoordconst nsACString_internal&)====
Code Size[http: 2//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]?)
[httpCode Size://mxr.mozilla.org/mozilla-central/search?string=FindLineAt MXR Search]4
===layout/tables=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=void nsTableOuterFrame::BalanceLeftRightCaption(PRUint8,const nsMargin&,const nsMarginfindi=&,nscoordfilter=%5E%5B%5E%5C0%5D*%2524&,nscoordhitlimit=&tree=mozilla-central MXR Search] Only nsAString version used (maybe)====
[httpCode Size://mxr.mozilla.org/mozilla-central/search?string=BalanceLeftRightCaption MXR Search]5
Code Size====nsCSSKeyword nsCSSKeywords: 66:LookupKeyword(const nsACString_internal&)====
[http://mxr.mozilla.org/mozilla-central/search?string====PRBool nsCellMapLookupKeyword MXR Search] (Only the nsAString version is apparently used but what about [http::ColHasSpanningCells(PRInt32//mxr.mozilla.org/mozilla-central/source/layout/style/test/TestCSSPropertyLookup.cpp#145 this line]?)====
[httpCode Size://mxr.mozilla.org/mozilla-central/search?string=ColHasSpanningCells MXR Search] (Called by nsTableCellMap::ColHasSpanningCells)7
Code Size====nsCSSKeyword nsCSSKeywords: 31:LookupKeyword(const nsACString_internal&)====
====PRBool nsTableFrameloc::ColHasSpanningCells(PRInt32)====layout/style/nsCSSKeywords.h
[http://mxr.mozilla.org/mozilla-central/search?string=ColHasSpanningCells %5B%5Ea-zA-Z0-9%5DLookupKeyword%5C%2528&regexp=on&case=on MXR Search]
Code Size: 117, static, nsAString version used
====PRBool nsTableCellMapnsCSSValueGradientStop::ColHasSpanningCellsnsCSSValueGradientStop(PRInt32const nsCSSValueGradientStop&)====
[http://mxr.mozilla.org/mozilla-central/search?string=ColHasSpanningCells nsCSSValueGradientStop MXR Search] (Called by nsTableFrame::ColHasSpanningCellsProbably not a good idea to remove this)
Code Size: 107
====PRBool nsTableCellMapnsCSSCornerSizes::ColIsSpannedIntonsCSSCornerSizes(PRInt32const nsCSSCornerSizes&)====
[http://mxr.mozilla.org/mozilla-central/search?string=ColIsSpannedInto nsCSSCornerSizes MXR Search] (Called by nsTableFrame::ColIsSpannedIntoProbably not a good idea to remove this)
Code Size: 3113
====PRBool nsTableFramensCSSValueListRect::ColIsSpannedIntonsCSSValueListRect(PRInt32const nsCSSValueListRect&)====
[http://mxr.mozilla.org/mozilla-central/search?string=ColIsSpannedInto nsCSSValueListRect MXR Search] Code Size: 11 ====PRBool nsCellMap::IsZeroColSpan(PRInt32,PRInt32Probably not a good idea to remove this)==== [http://mxr.mozilla.org/mozilla-central/search?string=IsZeroColSpan MXR Search] Code Size: 14 ====void nsTableFrame::SetColumnWidth(PRInt32,nscoord)==== [http://mxr.mozilla.org/mozilla-central/search?string=SetColumnWidth MXR Search] Code Size: 17 ====PRBool nsTableFrame::IsAutoWidth(PRBool*)==== [http://mxr.mozilla.org/mozilla-central/search?string=IsAutoWidth MXR Search] Code Size: 17 ====PRInt32 nsTableFrame::GetEffectiveCOLSAttribute()==== [http://mxr.mozilla.org/mozilla-central/search?string=GetEffectiveCOLSAttribute MXR Search]
Code Size: 9
====PRBool nsTableFramevoid nsCSSValue::IsPctHeightnsCSSValue(nsStyleContextnsCSSValueGradient*)====
[httpCode Size://mxr.mozilla.org/mozilla-central/search?string=IsPctHeight MXR Search]5, !
Code Size====void nsCSSValue: 8:nsCSSValue(Image*)====
===layout/mathml===Code Size: 5, !
====nsresult nsComboboxControlFramevoid nsCSSValue::GetOptionSelectednsCSSValue(PRInt32,PRBoolURL*)====
[httpCode Size://mxr.mozilla.org/mozilla-central/search?string=GetOptionSelected MXR Search]5, !
Code Size====void nsCSSValue: 11:nsCSSValue(Array*,nsCSSUnit)====
====nsresult nsListControlFrameCode Size::GetOptionSelected(PRInt325,PRBool*)====!
[http====void nsCSSValue:://mxr.mozilla.org/mozilla-central/search?stringnsCSSValue(float,nsCSSUnit)====GetOptionSelected MXR Search]
Code Size: 45, !
[http://mxr.mozilla.org/mozilla-central/search?string====nsresult nsISelectControlFrame::GetOptionSelectednsCSSValue( nsCSSValue(PRInt32,PRBool*)====MXR Search]
[httpdbaron://mxr.mozilla.org/mozilla-central/search?string=GetOptionSelected MXR Search] (called by nsComboboxControlFrame::GetOptionSelected)maintain the correspondence between setters and constructors
Code Size: 0 (pure virtual)===content/html===
====nsresult nsMathMLFramensGenericHTMLElement::SetEmbellishDataSetFloatAttr(const nsEmbellishData&nsIAtom*,float)====
[httpCode Size://mxr.mozilla.org/mozilla-central/search?string=SetEmbellishData MXR Search]6
Code Size[http: 8//mxr.mozilla.org/mozilla-central/search?string=SetFloatAttr MXR Search] * Will be used for HTML5
====nsresult nsMathMLFramensGenericHTMLElement::SetEmbellishDataGetFloatAttr(const nsEmbellishData&nsIAtom*,float,float*)====
[http://mxr.mozilla.org/mozilla-central/search?string=SetEmbellishData GetFloatAttr MXR Search]* Will be used for HTML5
Code Size: 0 (pure virtual)15
====nsresult nsMathMLFramensHTMLDNSPrefetch::GetReferencePrefetchHigh(nsPointnsAString_internal&)====
[http://mxr.mozilla.org/mozilla-central/search?string=GetReference(&case=on PrefetchHigh MXR Search]* - Meant as forward looking API
Code Size: 3
====nsresult nsIMathMLFramensHTMLDNSPrefetch::GetReferencePrefetchHigh(nsPoint&Link*)====
[http://mxr.mozilla.org/mozilla-central/search?string=GetReference(&case=on PrefetchHigh MXR Search]* - Meant as forward looking API
Code Size: 0 (pure virtual)3
====nsresult nsMathMLFramensHTMLDNSPrefetch::SetPresentationDataPrefetchMedium(const nsPresentationDatansAString_internal&)====
[http://mxr.mozilla.org/mozilla-central/search?string=SetPresentationData PrefetchMedium MXR Search]* - Meant as forward looking API
Code Size: 3
====nsresult nsIMathMLFramensHTMLDNSPrefetch::SetPresentationDataPrefetchMedium(const nsPresentationData&Link*)====
[http://mxr.mozilla.org/mozilla-central/search?string=SetPresentationData PrefetchMedium MXR Search]* - Meant as forward looking API
Code Size: 0 (pure virtual) == Bugs/Strangeness == ===layout/xul=== ====void nsBox::CoordNeedsRecalc(PRInt32&)==== [http://mxr.mozilla.org/mozilla-central/search?string=CoordNeedsRecalc MXR Search] Code Size: 2 This is declared in the header [http://mxr.mozilla.org/mozilla-central/source/layout/xul/base/src/nsBox.h#111 here] as taking an ncoord& parameter however it is defined [http://mxr.mozilla.org/mozilla-central/source/layout/xul/base/src/nsBox.cpp#412 here] as taking PRInt32&. Won't compile if [http://mxr.mozilla.org/mozilla-central/source/gfx/public/nsCoord.h#74 NS_COORD_IS_FLOAT] is defined. ====void nsListBoxBodyFrame::SetRowHeight(nscoord)==== [http://mxr.mozilla.org/mozilla-central/search?string=SetRowHeight MXR Search] Code Size: 41 Same situation, except SetRowHeight is declared in the [http://mxr.mozilla.org/mozilla-central/source/layout/xul/base/src/nsListBoxBodyFrame.h#112 header] as taking a PRInt32 yet the [http://mxr.mozilla.org/mozilla-central/source/layout/xul/base/src/nsListBoxBodyFrame.cpp#659 definition] lists the parameter as nscoord.3
1
edit

Navigation menu