Difference between revisions of "User:Egmetcalfe/Dead Code"

From CDOT Wiki
Jump to: navigation, search
(void* nsIFrame::GetPropertyExternal(nsIAtom*,nsresult*))
(view: Update)
 
(29 intermediate revisions by 2 users not shown)
Line 2: Line 2:
  
 
==Unconditionally Dead==
 
==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===
 
===content/base===
====PRBool nsParserUtils::GetQuotedAttrNameAt(const nsString&,PRUint32,nsAString_internal&)====
+
====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] *
 
[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
 
Code Size: 96, Static method
  
====nsIContent* nsContentUtils::FindFirstChildWithResolvedTag(nsIContent*,PRInt32,nsIAtom*)====
+
====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] *
 
[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
 
Code Size: 92, Static method
  
====nsIDocShell* nsContentUtils::GetDocShellFromCaller()====
+
====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/search?string=GetDocShellFromCaller MXR Search] *
+
[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
 
Code Size: 33, Static method
  
====nsIContent* nsContentUtils::GetReferencedElement(nsIURI*,nsIContent*)====
+
====nsIContent* nsContentUtils::GetReferencedElement(nsIURI*,nsIContent*)====
  
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetReferencedElement MXR Search] *
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetReferencedElement MXR Search] *
Line 25: Line 33:
 
Code Size: 6, Static method
 
Code Size: 6, Static method
  
====void nsXMLNameSpaceMap::RemovePrefix(nsIAtom*)====
+
====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] *
 
[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_
 
Code Size: 3, NS_HIDDEN_
  
====nsresult nsPlainTextSerializer::WillProcessTokens()====
+
====nsresult nsPlainTextSerializer::WillProcessTokens()====
  
 
[http://mxr.mozilla.org/mozilla-central/search?string=WillProcessTokens MXR Search] (forgot to include this in original patch)
 
[http://mxr.mozilla.org/mozilla-central/search?string=WillProcessTokens MXR Search] (forgot to include this in original patch)
Line 44: Line 52:
 
=== content/html ===
 
=== content/html ===
  
====void nsGenericHTMLElement::GetHrefURIToMutate(nsIURI**)====
+
====void nsGenericHTMLElement::GetHrefURIToMutate(nsIURI**)====
  
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetHrefURIToMutate MXR Search] *
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetHrefURIToMutate MXR Search] *
Line 50: Line 58:
 
Code Size: 3
 
Code Size: 3
  
====nsresult nsGenericHTMLElement::SetFloatAttr(nsIAtom*,float)====
+
====✓ PRBool SinkContext::IsAncestorContainer(nsHTMLTag)====
  
Code Size: 6
+
[http://mxr.mozilla.org/mozilla-central/search?string=IsAncestorContainer MXR Search] *
  
[http://mxr.mozilla.org/mozilla-central/search?string=SetFloatAttr MXR Search] (One use in a dead macro) *
+
Code Size: 13
 
 
====nsresult nsGenericHTMLElement::GetFloatAttr(nsIAtom*,float,float*)====
 
  
[http://mxr.mozilla.org/mozilla-central/search?string=GetFloatAttr MXR Search] (One use in a dead macro) *
+
====✓ nsresult nsHTMLFragmentContentSink::AddTextToContent(nsIContent*,const nsAString_internal&)====
  
Code Size: 15
+
[http://mxr.mozilla.org/mozilla-central/search?string=AddTextToContent MXR Search] *
  
====nsresult nsHTMLDNSPrefetch::PrefetchHigh(nsAString_internal&)====
+
Code Size: 26
 
 
[http://mxr.mozilla.org/mozilla-central/search?string=PrefetchHigh MXR Search] *
 
 
 
Code Size: 3
 
 
 
====nsresult nsHTMLDNSPrefetch::PrefetchHigh(Link*)====
 
 
 
[http://mxr.mozilla.org/mozilla-central/search?string=PrefetchHigh MXR Search] *
 
 
 
Code Size: 3
 
 
 
====nsresult nsHTMLDNSPrefetch::PrefetchMedium(nsAString_internal&)====
 
 
 
[http://mxr.mozilla.org/mozilla-central/search?string=PrefetchMedium MXR Search] *
 
 
 
Code Size: 3
 
  
====nsresult nsHTMLDNSPrefetch::PrefetchMedium(Link*)====
+
====✓ void nsXHTMLContentSerializer::AppendToString(const PRUnichar*, PRInt32, nsAString_internal&)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=PrefetchMedium MXR Search] *
+
loc: content/base/src/nsXHTMLContentSerializer.h
  
Code Size: 3
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DAppendToString%5C%2528&regexp=on&case=on MXR Search]
  
====PRBool SinkContext::IsAncestorContainer(nsHTMLTag)====
+
Code Size: 0, virtual
  
[http://mxr.mozilla.org/mozilla-central/search?string=IsAncestorContainer MXR Search] *
+
====✓ void nsXMLContentSerializer::AppendToString(const PRUnichar*, PRInt32, nsAString_internal&)====
  
Code Size: 13
+
loc: content/base/src/nsXMLContentSerializer.h
  
====nsresult nsHTMLFragmentContentSink::AddTextToContent(nsIContent*,const nsAString_internal&)====
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DAppendToString%5C%2528&regexp=on&case=on MXR Search]
  
[http://mxr.mozilla.org/mozilla-central/search?string=AddTextToContent MXR Search] *
+
Code Size: 0, virtual
 
 
Code Size: 26
 
  
 
<s>
 
<s>
Line 107: Line 95:
 
===content/media===
 
===content/media===
  
 +
<del>
 
====nsresult nsMediaCacheStream::ReadFromCache(char*,PRInt64,PRInt64)====
 
====nsresult nsMediaCacheStream::ReadFromCache(char*,PRInt64,PRInt64)====
  
Line 112: Line 101:
  
 
Code Size: 82
 
Code Size: 82
 +
</del>
  
 
===content/events===
 
===content/events===
Line 135: Line 125:
 
===content/xslt===
 
===content/xslt===
  
 +
<del>
 
====MBool txDouble::isNeg(double)====
 
====MBool txDouble::isNeg(double)====
  
Line 140: Line 131:
  
 
Code Size: 5
 
Code Size: 5
 +
</del>
  
 
====PRInt32 txNamespaceMap::lookupNamespace(const nsAString_internal&)====
 
====PRInt32 txNamespaceMap::lookupNamespace(const nsAString_internal&)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=lookupNamespace MXR Search]
+
[http://mxr.mozilla.org/mozilla-central/search?string=lookupNamespace MXR Search] [https://bugzilla.mozilla.org/show_bug.cgi?id=705429 Bug]
  
 
Code Size: 8
 
Code Size: 8
Line 151: Line 143:
 
====txXPathNode* txXPathNodeUtils::getDocument(const txXPathNode&)====
 
====txXPathNode* txXPathNodeUtils::getDocument(const txXPathNode&)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=getDocument MXR Search]
+
[http://mxr.mozilla.org/mozilla-central/search?string=getDocument MXR Search] [https://bugzilla.mozilla.org/show_bug.cgi?id=705430 Bug]
  
 
Code Size: 11
 
Code Size: 11
  
 +
<del>
 
====PRBool txEarlyEvalContext::isStripSpaceAllowed(const txXPathNode&)====
 
====PRBool txEarlyEvalContext::isStripSpaceAllowed(const txXPathNode&)====
  
Line 174: Line 167:
  
 
Note: Difficult to check but all PRBool isStripSpaceAllowed functions are dead. There are a number of MBool isStripSpaceAllowed functions which are not, however.
 
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**)====
 
====nsresult txResultRecycler::getNodeSet(const txXPathNode&,txNodeSet**)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=getNodeSet MXR Search]
+
[http://mxr.mozilla.org/mozilla-central/search?string=getNodeSet MXR Search] [https://bugzilla.mozilla.org/show_bug.cgi?id=705432 Bug]
  
 
Code Size: 29
 
Code Size: 29
Line 183: Line 177:
 
===content/xul===
 
===content/xul===
  
====PRBool TestNode::HasAncestor(const ReteNode*)====
+
====PRBool TestNode::HasAncestor(const ReteNode*)====
  
 
[http://mxr.mozilla.org/mozilla-central/search?string=HasAncestor MXR Search]
 
[http://mxr.mozilla.org/mozilla-central/search?string=HasAncestor MXR Search]
Line 189: Line 183:
 
Code Size: 11
 
Code Size: 11
  
====PRBool nsXULDocument::ContextStack::IsInsideXULTemplate()====
+
====PRBool nsXULDocument::ContextStack::IsInsideXULTemplate()====
  
 
[http://mxr.mozilla.org/mozilla-central/search?string=IsInsideXULTemplate MXR Search]
 
[http://mxr.mozilla.org/mozilla-central/search?string=IsInsideXULTemplate MXR Search]
Line 197: Line 191:
 
===content/xbl===
 
===content/xbl===
  
 +
<del>
 
====nsCOMArray* nsXBLPrototypeBinding::GetStyleSheets()====
 
====nsCOMArray* nsXBLPrototypeBinding::GetStyleSheets()====
  
[http://mxr.mozilla.org/mozilla-central/search?string=HandleScriptError MXR Search]
+
[http://mxr.mozilla.org/mozilla-central/search?string=GetStyleSheets MXR Search]
  
 
Code Size: 6
 
Code Size: 6
 +
</del>
  
 
===content/canvas===
 
===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)====
+
====void mozilla::CanvasUtils::LogMessagef(const char*)====
 
 
[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]
 
[http://mxr.mozilla.org/mozilla-central/search?string=LogMessagef MXR Search]
Line 238: Line 207:
 
Code Size: 24
 
Code Size: 24
  
====void mozilla::CanvasUtils::LogMessage(const nsCString&)====
+
====void mozilla::CanvasUtils::LogMessage(const nsCString&)====
  
 
[http://mxr.mozilla.org/mozilla-central/search?string=LogMessage MXR Search] Difficult to verify
 
[http://mxr.mozilla.org/mozilla-central/search?string=LogMessage MXR Search] Difficult to verify
Line 305: Line 274:
  
 
=== accessible ===
 
=== 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.
 
Path info: AddTargetFromChildrenHavingIDRefsAttr calls GetElementsHavingIDRefsAttr which calls GetElementsHavingIDRefsAttrImpl.
  
====void  nsCoreUtils::GetElementsHavingIDRefsAttrImpl(nsIContent*,nsCString&,nsIAtom*,nsIMutableArray*)====
+
====void  nsCoreUtils::GetElementsHavingIDRefsAttrImpl(nsIContent*,nsCString&,nsIAtom*,nsIMutableArray*)====
  
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetElementsHavingIDRefsAttrImpl MXR Search]
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetElementsHavingIDRefsAttrImpl MXR Search]
  
Code Size: 42
+
Code Size: 42, ^
  
====void nsCoreUtils::GetElementsHavingIDRefsAttr(nsIContent*,nsIContent*,nsIAtom*,nsIArray**)====
+
====void nsCoreUtils::GetElementsHavingIDRefsAttr(nsIContent*,nsIContent*,nsIAtom*,nsIArray**)====
  
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetElementsHavingIDRefsAttr MXR Search]
 
[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?]
+
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*)====
+
====nsresult  nsRelUtils::AddTargetFromChildrenHavingIDRefsAttr(PRUint32,nsIAccessibleRelation**,nsIContent*,nsIContent*,nsIAtom*)====
  
 
[http://mxr.mozilla.org/mozilla-central/search?string=AddTargetFromChildrenHavingIDRefsAttr MXR Search]
 
[http://mxr.mozilla.org/mozilla-central/search?string=AddTargetFromChildrenHavingIDRefsAttr MXR Search]
  
Code Size: 52
+
Code Size: 52, ^
  
====already_AddRefed nsAccUtils::QueryAccessibleTable(nsIAccessibleTable*)====
+
====already_AddRefed nsAccUtils::QueryAccessibleTable(nsIAccessibleTable*)====
  
 
[http://mxr.mozilla.org/mozilla-central/search?string=QueryAccessibleTable  MXR Search]
 
[http://mxr.mozilla.org/mozilla-central/search?string=QueryAccessibleTable  MXR Search]
  
Code Size: 7
+
Code Size: 7, ^
  
====already_AddRefed nsCoreUtils::GetLastSensibleColumn(nsITreeBoxObject*)====
+
====already_AddRefed nsCoreUtils::GetLastSensibleColumn(nsITreeBoxObject*)====
  
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetLastSensibleColumn MXR Search]
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetLastSensibleColumn MXR Search]
  
Code Size: 40
+
Code Size: 40, ^
 
 
====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
 
 
 
Note: A number of calls to GetValueFor functions are made where the second parameter has generic type ie T blah.
 
 
 
Path info: GetValue calls nsCSSTextAttr::Format
 
 
 
====PRBool nsTextAttr::GetValue(nsAString_internal&,int)====
 
 
 
To verify run [http://mxr.mozilla.org/mozilla-central/search?string=GetLastSensibleColumn this search] then grep for all lines that contain at least two commas
 
 
 
Code Size: 26
 
 
 
Note: Must also remove from nsITextAttr
 
 
 
These are too difficult too verify:
 
 
 
====void nsCSSTextAttr::Format(const nsAutoString&,nsAString_internal&)====
 
 
 
Code Size: 3
 
 
 
====void nsTextAttr::Format(const nsAutoString&,nsAString_internal&)====
 
 
 
Code Size: 0
 
 
 
====void nsLangTextAttr::Format(const nsAutoString&,nsAString_internal&)====
 
 
 
Code Size: 7
 
  
 
=== embedding/components/windowwatcher ===
 
=== embedding/components/windowwatcher ===
  
====nsIScriptGlobalObject* nsWWJSUtils::GetStaticScriptGlobal(JSContext*,JSObject*)====
+
====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]
 
[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]
Line 390: Line 323:
 
Code Size: 45, Static method
 
Code Size: 45, Static method
  
====nsIScriptContext* nsWWJSUtils::GetStaticScriptContext(JSContext*,JSObject*)====
+
====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]
 
[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
 
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 ===
 
=== gfx/thebes/public ===
  
 +
<del>
 
Path info: MapCharToGlyph calls MapCharToGlyphFormat4
 
Path info: MapCharToGlyph calls MapCharToGlyphFormat4
  
Line 418: Line 345:
  
 
Code Size: 11, Static method, class marked THEBES_API
 
Code Size: 11, Static method, class marked THEBES_API
 +
</del>
  
 
=== gfx/src/thebes ===
 
=== gfx/src/thebes ===
Line 423: Line 351:
 
Path info: GetTextDimensions calls GetTextDimensionsInternal
 
Path info: GetTextDimensions calls GetTextDimensionsInternal
  
==== nsresult nsThebesRenderingContext::GetTextDimensions(const PRUnichar*,PRInt32,PRInt32,PRInt32*,PRInt32,nsTextDimensions&,PRInt32&,nsTextDimensions&,PRInt32*)====
+
==== nsresult nsThebesRenderingContext::GetTextDimensions(const PRUnichar*,PRInt32,PRInt32,PRInt32*,PRInt32,nsTextDimensions&,PRInt32&,nsTextDimensions&,PRInt32*)====
  
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetTextDimensions MXR Search]
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetTextDimensions MXR Search]
Line 429: Line 357:
 
Code Size: 56
 
Code Size: 56
  
==== nsresult nsThebesRenderingContext::GetTextDimensionsInternal(const PRUnichar*,PRInt32,PRInt32,PRInt32*,PRInt32,nsTextDimensions&,PRInt32&,nsTextDimensions&,PRInt32*) ====
+
==== nsresult nsThebesRenderingContext::GetTextDimensionsInternal(const PRUnichar*,PRInt32,PRInt32,PRInt32*,PRInt32,nsTextDimensions&,PRInt32&,nsTextDimensions&,PRInt32*) ====
  
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetTextDimensionsInternal MXR Search]
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetTextDimensionsInternal MXR Search]
Line 435: Line 363:
 
Code Size: 2
 
Code Size: 2
  
 +
==== void nsRenderingContext::InvertRect(nscoord, nscoord, nscoord, nscoord) ====
 
[http://mxr.mozilla.org/mozilla-central/search?string=InvertRect MXR Search]
 
[http://mxr.mozilla.org/mozilla-central/search?string=InvertRect MXR Search]
  
Line 448: Line 377:
  
 
=== modules/libpr0n ===
 
=== modules/libpr0n ===
 +
<del>
 
====PRUint32 imgFrame::GetImageBytesPerRow()====
 
====PRUint32 imgFrame::GetImageBytesPerRow()====
  
Line 453: Line 383:
  
 
Code Size: 11
 
Code Size: 11
 +
</del>
  
 
====PRInt32 imgFrame::GetHeight()====
 
====PRInt32 imgFrame::GetHeight()====
Line 480: Line 411:
 
===editor===
 
===editor===
  
====nsresult nsHTMLCSSUtils::RemoveCSSProperty(nsIDOMElement*,const nsAString_internal&)====
+
====nsresult nsHTMLCSSUtils::RemoveCSSProperty(nsIDOMElement*,const nsAString_internal&)====
  
 
[http://mxr.mozilla.org/mozilla-central/search?string=RemoveCSSProperty MXR Search]
 
[http://mxr.mozilla.org/mozilla-central/search?string=RemoveCSSProperty MXR Search]
Line 486: Line 417:
 
Code Size: 28
 
Code Size: 28
  
===security/manager/ssl===
+
====nsresult nsTextServicesDocument::GetDocument(nsIDOMDocument**)====
  
Path Info:
+
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
  
CommonAsyncVerifySignature is called by AsyncVerifySignature and AsyncVerifyDetachedSignature.
+
====void* nsDomIterFunctor::operator()(nsIDOMNode*)====
  
====nsresult nsCMSMessage::CommonAsyncVerifySignature(nsISMimeVerificationListener*,unsigned char*,PRUint32)====
+
loc: editor/libeditor/base/nsEditorUtils.h
  
[http://mxr.mozilla.org/mozilla-central/search?string=CommonAsyncVerifySignature MXR Search]
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5Doperator%5C%2528&regexp=on&case=on MXR Search]
  
Code Size: 43
+
Code Size: 0, virtual
  
====nsresult nsCMSMessage::AsyncVerifyDetachedSignature(nsISMimeVerificationListener*,unsigned char*,PRUint32)====
+
====nsresult EditAggregateTxn::GetCount(PRUint32*)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=AsyncVerifyDetachedSignature MXR Search]
+
loc: editor/libeditor/base/EditAggregateTxn.h
  
Code Size: 6
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetCount%5C%2528&regexp=on&case=on MXR Search]
  
====nsresult nsCMSMessage::AsyncVerifySignature(nsISMimeVerificationListener*)====
+
Code Size: 7, virtual
  
[http://mxr.mozilla.org/mozilla-central/search?string=AsyncVerifySignature MXR Search]
+
====nsresult EditAggregateTxn::GetTxnAt(PRInt32, EditTxn**)====
  
Code Size: 3
+
loc: editor/libeditor/base/EditAggregateTxn.h
  
Also Note: AsyncVerifySignature is the only caller of these two operators in mozilla/xpcom/glue:
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetTxnAt%5C%2528&regexp=on&case=on MXR Search]
  
====nsCOMPtr& nsCOMPtr::operator=(nsICMSMessage*)====
+
Code Size: 27, virtual
  
Code Size: 5
+
====nsresult EditAggregateTxn::SetName(nsIAtom*)====
  
====nsCOMPtr& nsCOMPtr::operator=(nsISMimeVerificationListener*)====
+
loc: editor/libeditor/base/EditAggregateTxn.h
  
Code Size: 5
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DSetName%5C%2528&regexp=on&case=on MXR Search]
  
===intl===
+
Code Size: 7, virtual
  
====nsresult nsCaseConversionImp2::ToTitle(const PRUnichar*,PRUnichar*,PRUint32,PRBool)====
+
====nsresult nsHTMLEditor::GetBlockSection(nsIDOMNode*, nsIDOMNode**, nsIDOMNode**)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=ToTitle&case=on MXR Search]
+
loc: editor/libeditor/html/nsHTMLEditor.h
  
Code Size: 42
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetBlockSection%5C%2528&regexp=on&case=on MXR Search]
  
Note: Must also be removed from nsICaseConversion
+
Code Size: 127, static, called by GetBlockSectionsForRange
  
====PRUint16* MapperToCCMap(nsICharRepresentable*)====
+
====✓ nsresult nsHTMLEditor::GetBlockSectionsForRange(nsIDOMRange*, nsCOMArray&)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=MapperToCCMap MXR Search]
+
loc: editor/libeditor/html/nsHTMLEditor.h
  
Code Size: 15
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetBlockSectionsForRange%5C%2528&regexp=on&case=on MXR Search]
  
====void nsBufferDecoderSupport::DoubleBuffer()====
+
Code Size: 189, static
  
[http://mxr.mozilla.org/mozilla-central/search?string=DoubleBuffer MXR Search]
+
====nsresult nsHTMLEditor::IsRootTag(nsString&, PRBool&)====
  
Code Size: 19
+
loc: editor/libeditor/html/nsHTMLEditor.h
  
====nsresult nsDetectionAdaptor::ProcessTokens()====
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DIsRootTag%5C%2528&regexp=on&case=on MXR Search]
  
[http://mxr.mozilla.org/mozilla-central/search?string=ProcessTokens MXR Search]
+
Code Size: 16, virtual
  
Code Size: 2
+
====nsresult TypeInState::SetProp(nsIAtom*)====
  
====nsresult nsDetectionAdaptor::WillAddToken(CToken&)====
+
loc: editor/libeditor/html/TypeInState.h
  
[http://mxr.mozilla.org/mozilla-central/search?string=WillAddToken MXR Search]
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DSetProp%5C%2528&regexp=on&case=on MXR Search]
  
Code Size: 2
+
Code Size: 5
  
Note: ProcessTokens and WillAddTokens must be removed from nsIParserFilter as well.
+
====nsresult TypeInState::SetProp(nsIAtom*, const nsString&)====
  
====nsDebugDetector::nsDebugDetector(nsDebugDetectorSel)====
+
loc: editor/libeditor/html/TypeInState.h
  
[http://mxr.mozilla.org/mozilla-central/search?string=nsDebugDetector&case=1 MXR Search]
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DSetProp%5C%2528&regexp=on&case=on MXR Search]
  
Code Size: 10
+
Code Size: 4
  
===dom===
+
====nsresult TypeInState::ClearProp(nsIAtom*)====
  
====nsresult nsIScriptGlobalObject::HandleScriptError(nsScriptErrorEvent*,nsEventStatus*)====
+
loc: editor/libeditor/html/TypeInState.h
  
[http://mxr.mozilla.org/mozilla-central/search?string=HandleScriptError MXR Search]
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DClearProp%5C%2528&regexp=on&case=on MXR Search]
  
Code Size: 3
+
Code Size: 4
  
===parser===
+
====nsresult TypeInState::GetTypingState(PRBool&, PRBool&, nsIAtom*, const nsString&)====
  
====void nsCParserNode::SetGenericState(PRBool)====
+
loc: editor/libeditor/html/TypeInState.h
  
[http://mxr.mozilla.org/mozilla-central/search?string=SetGenericState MXR Search]
+
[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
 
Code Size: 3
  
====PRBool nsCParserNode::GetGenericState()====
+
====PRBool nsHTMLEditUtils::IsAddress(nsIDOMNode*)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=GetGenericState MXR Search]
+
loc: editor/libeditor/html/nsHTMLEditUtils.h
  
Code Size: 3
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DIsAddress%5C%2528&regexp=on&case=on MXR Search]
  
====const nsAString_internal& nsCParserNode::GetTagName()====
+
Code Size: 4, static
  
[http://mxr.mozilla.org/mozilla-central/search?string=GetGenericState MXR Search]
+
====nsresult nsHTMLEditRules::DidDeleteRange(nsIDOMRange*)====
  
Code Size: 3
+
loc: editor/libeditor/html/nsHTMLEditRules.h
  
====void nsCParserNode::GetSource(nsString&)====
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DDidDeleteRange%5C%2528&regexp=on&case=on MXR Search]
  
Code Size: 22
+
Code Size: 2, virtual
  
[http://mxr.mozilla.org/mozilla-central/search?string=GetSource MXR Search]
+
====nsresult nsHTMLEditRules::WillDeleteRange(nsIDOMRange*)====
  
====void nsCParserStartNode::GetSource(nsString&)====
+
loc: editor/libeditor/html/nsHTMLEditRules.h
  
[http://mxr.mozilla.org/mozilla-central/search?string=GetSource MXR Search]
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DWillDeleteRange%5C%2528&regexp=on&case=on MXR Search]
  
Code Size: 35
+
Code Size: 6, virtual
  
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.
+
====nsresult ::NS_NewComposerCommandsUpdater(nsISelectionListener**)====
  
Path Info: nsDTDContext::PopEntry() calls nsEntryStack::PopEntry()
+
loc: editor/composer/src/nsComposerCommandsUpdater.cpp
  
====nsTagEntry* nsEntryStack::PopEntry()====
+
[http://mxr.mozilla.org/mozilla-central/search?string=NS_NewComposerCommandsUpdater MXR Search]
  
[http://mxr.mozilla.org/mozilla-central/search?string=PopEntry MXR Search]
+
Code Size: 15
  
Code Size: 7
+
'''API?'''
  
====nsTagEntry* nsDTDContext::PopEntry()====
+
===security===
  
[http://mxr.mozilla.org/mozilla-central/search?string=PopEntry  MXR Search]
+
Path Info:
  
Code Size: 7
+
CommonAsyncVerifySignature is called by AsyncVerifySignature and AsyncVerifyDetachedSignature.
  
====nsCParserNode* nsDTDContext::PopStyle()====
+
====nsresult nsCMSMessage::CommonAsyncVerifySignature(nsISMimeVerificationListener*,unsigned char*,PRUint32)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=PopStyle MXR Search]
+
[http://mxr.mozilla.org/mozilla-central/search?string=CommonAsyncVerifySignature MXR Search]
  
Code Size: 18
+
Code Size: 43
  
====nsTagEntry* nsDTDContext::LastEntry()====
+
====nsresult nsCMSMessage::AsyncVerifyDetachedSignature(nsISMimeVerificationListener*,unsigned char*,PRUint32)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=LastEntry MXR Search]
+
[http://mxr.mozilla.org/mozilla-central/search?string=AsyncVerifyDetachedSignature MXR Search]
  
 
Code Size: 6
 
Code Size: 6
  
====nsHTMLTag nsEntryStack::First()====
+
====nsresult nsCMSMessage::AsyncVerifySignature(nsISMimeVerificationListener*)====
 +
 
 +
[http://mxr.mozilla.org/mozilla-central/search?string=AsyncVerifySignature MXR Search]
  
[http://mxr.mozilla.org/mozilla-central/search?string=First MXR Search]
+
Code Size: 3 (It will also take two nsCOMPtr::operator=' along with it, both with code size 5)
  
Code Size: 7
+
====void nsNSSCertTrust::SetTrustedServerCA()====
  
====nsHTMLTag nsDTDContext::First()====
+
loc: security/manager/ssl/src/nsNSSCertTrust.h
  
[http://mxr.mozilla.org/mozilla-central/search?string=First MXR Search]
+
[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
 
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)
+
====void nsNSSCertTrust::SetTrustedCA()====
  
===ipc===
+
loc: security/manager/ssl/src/nsNSSCertTrust.h
  
====bool mozilla::ipc::GeckoChildProcessHost::AsyncLaunch(vector)====
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DSetTrustedCA%5C%2528&regexp=on&case=on MXR Search]
  
[http://mxr.mozilla.org/mozilla-central/search?string=AsyncLaunch MXR Search]
+
Code Size: 4
  
Code Size: 17
+
====void nsNSSCertTrust::SetTrustedPeer()====
  
===widget===
+
loc: security/manager/ssl/src/nsNSSCertTrust.h
  
====PRBool confirm_overwrite_file(GtkWidget*,nsILocalFile*)====
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DSetTrustedPeer%5C%2528&regexp=on&case=on MXR Search]
  
[http://mxr.mozilla.org/mozilla-central/search?string=confirm_overwrite_file MXR Search]
+
Code Size: 4
  
Code Size: 95
+
====void nsNSSCertTrust::SetUser()====
  
====nsresult nsDeviceContextSpecGTK::GetPrintMethod(PrintMethod&)====
+
loc: security/manager/ssl/src/nsNSSCertTrust.h
  
[http://mxr.mozilla.org/mozilla-central/search?string=GetPrintMethod MXR Search]
+
[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
 
Code Size: 4
  
====void nsPrinterFeatures::SetMultipleConcurrentDeviceContextsSupported(PRBool)====
+
====PRBool nsNSSCertTrust::HasCA(PRBool, PRBool, PRBool)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=SetMultipleConcurrentDeviceContextsSupported MXR Search]
+
loc: security/manager/ssl/src/nsNSSCertTrust.h
  
Code Size: 2
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DHasCA%5C%2528&regexp=on&case=on MXR Search]
  
====nsCursor nsBaseWidget::GetCursor()====
+
Code Size: 29
  
[http://mxr.mozilla.org/mozilla-central/search?string=GetCursor MXR Search]
+
====PRBool nsNSSCertTrust::HasUser(PRBool, PRBool, PRBool)====
  
Code Size: 2
+
loc: security/manager/ssl/src/nsNSSCertTrust.h
  
Note: Must also be removed from nsIWidget.
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DHasUser%5C%2528&regexp=on&case=on MXR Search]
  
===extensions===
+
Code Size: 29
  
====nsresult nsCyrXPCOMStringDetector::DoIt(const char*,PRUint32,const char**,nsDetectionConfident&)====
+
====void nsX509CertValidity::nsX509CertValidity()====
  
[http://mxr.mozilla.org/mozilla-central/search?string=DoIt(&case=1 MXR Search]
+
loc: security/manager/ssl/src/nsNSSCertValidity.h
  
Code Size: 19
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DnsX509CertValidity%5C%2528&regexp=on&case=on MXR Search]
  
====nsresult nsXPCOMStringDetector::DoIt(const char*,PRUint32,const char**,nsDetectionConfident&)====
+
Code Size: 7
  
[http://mxr.mozilla.org/mozilla-central/search?string=DoIt(&case=1 MXR Search]
+
====nsresult nsNSSSocketInfo::SetExternalErrorReporting(PRBool)====
  
Code Size: 32
+
loc: security/manager/ssl/src/nsNSSIOLayer.h
  
===view===
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DSetExternalErrorReporting%5C%2528&regexp=on&case=on MXR Search]
  
====nsIntPoint nsIView::GetScreenPosition()====
+
Code Size: 4
  
[http://mxr.mozilla.org/mozilla-central/search?string=GetScreenPosition MXR Search]
+
====nsresult nsNSSSocketInfo::GetForSTARTTLS(PRBool*)====
  
Code Size: 39
+
loc: security/manager/ssl/src/nsNSSIOLayer.h
  
====nsresult nsViewManager::GetViewObserver(nsIViewObserver*&)====
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetForSTARTTLS%5C%2528&regexp=on&case=on MXR Search]
  
[http://mxr.mozilla.org/mozilla-central/search?string=GetViewObserver MXR Search]
+
Code Size: 5
  
Code Size: 16
+
====nsresult nsNSSSocketInfo::GetForSTARTTLS(PRBool*)====
  
====void nsView::SetPositionIgnoringChildWidgets(nscoord,nscoord)====
+
loc: security/manager/ssl/src/nsNSSIOLayer.h
  
[http://mxr.mozilla.org/mozilla-central/search?string=SetPositionIgnoringChildWidgets MXR Search]
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetForSTARTTLS%5C%2528&regexp=on&case=on MXR Search]
  
Code Size: 14
+
Code Size: 5
  
====nsresult nsViewManager::MoveViewBy(nsIView*,nscoord,nscoord)====
+
====nsresult nsNSSSocketInfo::GetFileDescPtr(PRFileDesc**)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=MoveViewBy MXR Search]
+
loc: security/manager/ssl/src/nsNSSIOLayer.h
  
Code Size: 14
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetFileDescPtr%5C%2528&regexp=on&case=on MXR Search]
  
====nsresult nsViewManager::InsertChild(nsIView*,nsIView*,PRInt32)====
+
Code Size: 4
  
[http://mxr.mozilla.org/mozilla-central/search?string=InsertChild(&case=1 MXR Search]
+
====nsresult nsNSSSocketInfo::GetCert(nsIX509Cert**)====
  
Code Size: 10
+
loc: security/manager/ssl/src/nsNSSIOLayer.h
  
====PRBool nsIView::ExternalIsRoot()====
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetCert%5C%2528&regexp=on&case=on MXR Search]
  
[http://mxr.mozilla.org/mozilla-central/search?string=SetPositionIgnoringChildWidgets MXR Search]
+
Code Size: 11
  
Code Size: 3
+
====PRBool nsNSSActivityState::isBlockingUIActive()====
  
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?
+
loc: security/manager/ssl/src/nsNSSShutDown.h
  
===layout/xul===
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DisBlockingUIActive%5C%2528&regexp=on&case=on MXR Search]
  
====void nsBoxFrame::FireDOMEventSynch(const nsAString_internal&,nsIContent*)====
+
Code Size: 8
  
[http://mxr.mozilla.org/mozilla-central/search?string=FireDOMEventSynch MXR Search]
+
====nsresult nsCRMFObject::init()====
  
Code Size: 46
+
loc: security/manager/ssl/src/nsCrypto.h
  
====void nsGridRow::MarkDirty(nsBoxLayoutState&)====
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5Dinit%5C%2528&regexp=on&case=on MXR Search]
  
[http://mxr.mozilla.org/mozilla-central/search?string=MarkDirty&case=1 MXR Search]
+
Code Size: 2
  
Code Size: 16
+
====PRBool ::confirm_user(const PRUnichar*)====
  
====void nsBoxLayout::GetParentLayout(nsIBox*,nsIBoxLayout**)====
+
loc: security/manager/ssl/src/nsCrypto.cpp
  
[http://mxr.mozilla.org/mozilla-central/search?string=GetParentLayout MXR Search]
+
[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: 9
+
Code Size: 36
  
====nsGridRow* nsGrid::GetRows()====
+
====void nsCRLInfo::nsCRLInfo()====
  
[http://mxr.mozilla.org/mozilla-central/search?string=GetRows(&case=on MXR Search]
+
loc: security/manager/ssl/src/nsCRLInfo.h
  
Code Size: 3
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DnsCRLInfo%5C%2528&regexp=on&case=on MXR Search]
  
====nsGridRow* nsGrid::GetColumns()====
+
Code Size: 20
  
[http://mxr.mozilla.org/mozilla-central/search?string=GetColumns(&case=on MXR Search]
+
====void nsOCSPResponder::nsOCSPResponder()====
  
Code Size: 3
+
loc: security/manager/ssl/src/nsOCSPResponder.h
  
====nsresult nsMenuFrame::IsActive(PRBool&)====
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DnsOCSPResponder%5C%2528&regexp=on&case=on MXR Search]
  
[http://mxr.mozilla.org/mozilla-central/search?string=IsActive%5C%2528%5B%5E%2529%5D&regexp=on&case=1 MXR Search]
+
Code Size: 10
  
Code Size: 3
+
====void nsCertTreeDispInfo::nsCertTreeDispInfo(nsCertTreeDispInfo&)====
  
====void nsBox::AddMargin(nsSize&)====
+
loc: security/manager/ssl/src/nsCertTree.h
  
[http://mxr.mozilla.org/mozilla-central/search?string=AddMargin&case=1 MXR Search]
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DnsCertTreeDispInfo%5C%2528&regexp=on&case=on MXR Search]
  
Code Size: 3
+
Code Size: 29
  
===layout/base===
+
====nsresult nsNSSComponent::RememberCert(CERTCertificate*)====
  
====nsIFrame* nsLayoutUtils::GetClosestCommonAncestorViaPlaceholders(nsIFrame*,nsIFrame*,nsIFrame*)====
+
loc: security/manager/ssl/src/nsNSSComponent.h
  
[http://mxr.mozilla.org/mozilla-central/search?string=GetClosestCommonAncestorViaPlaceholders MXR Search] (Calls itself)
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DRememberCert%5C%2528&regexp=on&case=on MXR Search]
  
Code Size: 62
+
Code Size: 0, virtual
  
====nsBidi::nsBidi(PRUint32,PRUint32)====
+
====nsresult nsINSSComponent::RememberCert(CERTCertificate*)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=nsBidi(&case=1 MXR Search]
+
loc: security/manager/ssl/src/nsNSSComponent.h
  
Code Size: 43
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DRememberCert%5C%2528&regexp=on&case=on MXR Search]
  
====nsIFrame* nsFrameManager::GetCanvasFrame()====
+
Code Size: 0, virtual
  
[http://mxr.mozilla.org/mozilla-central/search?string=GetCanvasFrame MXR Search]
+
====nsresult nsNSSComponent::NSSBundleFormatStringFromName(const char*, const PRUnichar**, PRUint32, nsAString_internal&)====
  
Code Size: 20
+
loc: security/manager/ssl/src/nsNSSComponent.h
  
====nsresult nsBidiPresUtils::GetBidiEngine(nsBidi**)====
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DNSSBundleFormatStringFromName%5C%2528&regexp=on&case=on MXR Search]
  
[http://mxr.mozilla.org/mozilla-central/search?string=GetBidiEngine MXR Search]
+
Code Size: 0, virtual
  
Code Size: 8
+
====nsresult nsINSSComponent::NSSBundleFormatStringFromName(const char*, const PRUnichar**, PRUint32, nsAString_internal&)====
  
====void nsDisplayList::DeleteBottom()====
+
loc: security/manager/ssl/src/nsNSSComponent.h
  
[http://mxr.mozilla.org/mozilla-central/search?string=DeleteBottom MXR Search]
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DNSSBundleFormatStringFromName%5C%2528&regexp=on&case=on MXR Search]
  
Code Size: 7
+
Code Size: 0, virtual
  
====void nsFrameManager::ClearUndisplayedContentMap()====
+
And a bunch more.... Probably should deal with security stuff last, if at all
  
[http://mxr.mozilla.org/mozilla-central/search?string=ClearUndisplayedContentMap MXR Search]
+
===intl===
  
Code Size: 5
+
====nsresult nsCaseConversionImp2::ToTitle(const PRUnichar*,PRUnichar*,PRUint32,PRBool)====
  
====gfxContext* nsContextBoxBlur::GetContext()====
+
[http://mxr.mozilla.org/mozilla-central/search?string=ToTitle&case=on MXR Search]
  
[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: 42
  
Code Size: 4
+
Note: Must also be removed from nsICaseConversion
  
====PRInt32 nsIPresShell::GetVerifyReflowFlags()====
+
====✓ PRUint16* MapperToCCMap(nsICharRepresentable*)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=GetVerifyReflowFlags MXR Search]
+
[http://mxr.mozilla.org/mozilla-central/search?string=MapperToCCMap MXR Search]
  
Code Size: 2
+
Code Size: 15
  
====void nsIPresShell::SetVerifyReflowEnable(PRBool)====
+
====void nsBufferDecoderSupport::DoubleBuffer()====
  
[http://mxr.mozilla.org/mozilla-central/search?string=SetVerifyReflowEnable MXR Search] (called by ifdef DEBUG code)
+
[http://mxr.mozilla.org/mozilla-central/search?string=DoubleBuffer MXR Search]
  
Code Size: 2
+
Code Size: 19
  
====PRBool nsIPresShell::GetVerifyReflowEnable()====
+
====✓ nsresult nsDetectionAdaptor::ProcessTokens()====
  
[http://mxr.mozilla.org/mozilla-central/search?string=GetVerifyReflowEnable MXR Search] (called by ifdef DEBUG code)
+
[http://mxr.mozilla.org/mozilla-central/search?string=ProcessTokens MXR Search]
  
 
Code Size: 2
 
Code Size: 2
  
====PRBool PresShell::nsDelayedEvent::Equals(nsPIDOMEventTarget*,PRUint32)====
+
====✓ nsresult nsDetectionAdaptor::WillAddToken(CToken&)====
  
(Impossible to verify with MXR)
+
[http://mxr.mozilla.org/mozilla-central/search?string=WillAddToken MXR Search]
  
 
Code Size: 2
 
Code Size: 2
  
===layout/style===
+
Note: ProcessTokens and WillAddTokens must be removed from nsIParserFilter as well.
  
====nsresult CSSLoaderImpl::StopLoadingSheet(nsIURI*)====
+
====nsDebugDetector::nsDebugDetector(nsDebugDetectorSel)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=StopLoadingSheet MXR Search]
+
[http://mxr.mozilla.org/mozilla-central/search?string=nsDebugDetector&case=1 MXR Search]
  
Code Size: 96
+
Code Size: 10
 +
 
 +
===dom===
  
====StopLoadingSheetsByURIClosure::StopLoadingSheetsByURIClosure(nsIURI*,nsTArray&)====
+
====nsresult nsIScriptGlobalObject::HandleScriptError(nsScriptErrorEvent*,nsEventStatus*)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=StopLoadingSheetsByURIClosure MXR Search] (called by StopLoadingSheet)
+
[http://mxr.mozilla.org/mozilla-central/search?string=HandleScriptError MXR Search]
  
 
Code Size: 3
 
Code Size: 3
  
====PRBool langMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)====
+
====void nsJSContext::SetDefaultLanguageVersion(PRUint32)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=langMatches MXR Search]
+
loc: dom/base/nsJSEnvironment.h
  
Code Size: 69
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DSetDefaultLanguageVersion%5C%2528&regexp=on&case=on MXR Search]
  
====const nsString* RuleProcessorData::GetLang()====
+
Code Size: 0, virtual
  
[http://mxr.mozilla.org/mozilla-central/search?string=GetLang( MXR Search] (called by langMatches)
+
====void nsIScriptContext::SetDefaultLanguageVersion(PRUint32)====
  
Code Size: 46
+
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]
  
====PRBool mozSystemMetricMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)====
+
Code Size: 3
  
[http://mxr.mozilla.org/mozilla-central/search?string=mozSystemMetricMatches MXR Search]
+
====PRBool nsCParserNode::GetGenericState()====
  
Code Size: 9
+
[http://mxr.mozilla.org/mozilla-central/search?string=GetGenericState MXR Search]
  
====void nsCSSCornerSizes::SetAllCornersTo(const nsCSSValue&)====
+
Code Size: 3
  
[http://mxr.mozilla.org/mozilla-central/search?string=SetAllCornersTo MXR Search] (NS_HIDDEN)
+
====const nsAString_internal& nsCParserNode::GetTagName()====
  
Code Size: 7
+
[http://mxr.mozilla.org/mozilla-central/search?string=GetGenericState MXR Search]
  
====nsCSSProperty nsCSSProps::LookupProperty(const nsACString_internal&)====
+
Code Size: 3
  
[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)
+
====void nsCParserNode::GetSource(nsString&)====
  
Code Size: 5
+
Code Size: 22
  
====nsresult CSSLoaderImpl::GetPreferredSheet(nsAString_internal&)====
+
[http://mxr.mozilla.org/mozilla-central/search?string=GetSource MXR Search]
  
[http://mxr.mozilla.org/mozilla-central/search?string=GetPreferredSheet MXR Search]
+
====void nsCParserStartNode::GetSource(nsString&)====
  
Code Size: 4
+
[http://mxr.mozilla.org/mozilla-central/search?string=GetSource MXR Search]
  
====nsCSSFontDesc nsCSSProps::LookupFontDesc(const nsACString_internal&)====
+
Code Size: 35
  
[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]?)
+
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.
  
Code Size: 4
+
Path Info: nsDTDContext::PopEntry() calls nsEntryStack::PopEntry()
  
====nsCSSKeyword nsCSSKeywords::LookupKeyword(const nsACString_internal&)====
+
====nsTagEntry* nsEntryStack::PopEntry()====
  
[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]?)
+
[http://mxr.mozilla.org/mozilla-central/search?string=PopEntry MXR Search]
  
 
Code Size: 7
 
Code Size: 7
  
====nsCSSValueGradientStop::nsCSSValueGradientStop(const nsCSSValueGradientStop&)====
+
====nsTagEntry* nsDTDContext::PopEntry()====
  
[http://mxr.mozilla.org/mozilla-central/search?string=nsCSSValueGradientStop MXR Search] (Probably not a good idea to remove this)
+
[http://mxr.mozilla.org/mozilla-central/search?string=PopEntry  MXR Search]
  
 
Code Size: 7
 
Code Size: 7
  
====nsCSSCornerSizes::nsCSSCornerSizes(const nsCSSCornerSizes&)====
+
====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]
  
[http://mxr.mozilla.org/mozilla-central/search?string=nsCSSCornerSizes MXR Search] (Probably not a good idea to remove this)
+
Code Size: 7
  
Code Size: 13
+
====nsHTMLTag nsDTDContext::First()====
  
====nsCSSValueListRect::nsCSSValueListRect(const nsCSSValueListRect&)====
+
[http://mxr.mozilla.org/mozilla-central/search?string=First MXR Search]
  
[http://mxr.mozilla.org/mozilla-central/search?string=nsCSSValueListRect MXR Search] (Probably not a good idea to remove this)
+
Code Size: 4
  
Code Size: 9
+
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)
  
====void nsCSSValue::nsCSSValue(nsCSSValueGradient*)====
+
===ipc===
  
Code Size: 5
+
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.
  
====void nsCSSValue::nsCSSValue(Image*)====
+
====bool mozilla::ipc::GeckoChildProcessHost::AsyncLaunch(vector)====
  
Code Size: 5
+
[http://mxr.mozilla.org/mozilla-central/search?string=AsyncLaunch MXR Search]
  
====void nsCSSValue::nsCSSValue(URL*)====
+
Code Size: 17
  
Code Size: 5
+
===widget===
  
====void nsCSSValue::nsCSSValue(Array*,nsCSSUnit)====
+
====PRBool confirm_overwrite_file(GtkWidget*,nsILocalFile*)====
  
Code Size: 5
+
[http://mxr.mozilla.org/mozilla-central/search?string=confirm_overwrite_file MXR Search]
  
====void nsCSSValue::nsCSSValue(float,nsCSSUnit)====
+
Code Size: 95
  
Code Size: 5
+
====nsresult nsDeviceContextSpecGTK::GetPrintMethod(PrintMethod&)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=nsCSSValue( nsCSSValue( MXR Search] (Only the no-argument and nsCSSUnit constructors are used)
+
[http://mxr.mozilla.org/mozilla-central/search?string=GetPrintMethod MXR Search]
  
====nsresult nsHTMLStyleSheet::GetLinkColor(nscolor&)====
+
Code Size: 4
  
[http://mxr.mozilla.org/mozilla-central/search?string=GetLinkColor MXR Search]
+
====void nsPrinterFeatures::SetMultipleConcurrentDeviceContextsSupported(PRBool)====
  
Code Size: 8
+
[http://mxr.mozilla.org/mozilla-central/search?string=SetMultipleConcurrentDeviceContextsSupported MXR Search]
  
====nsresult nsHTMLStyleSheet::GetActiveLinkColor(nscolor&)====
+
Code Size: 2
  
[http://mxr.mozilla.org/mozilla-central/search?string=GetActiveLinkColor MXR Search]
+
====nsCursor nsBaseWidget::GetCursor()====
  
Code Size: 8
+
[http://mxr.mozilla.org/mozilla-central/search?string=GetCursor MXR Search]
  
====nsresult nsHTMLStyleSheet::GetVisitedLinkColor(nscolor&)====
+
Code Size: 2
  
[http://mxr.mozilla.org/mozilla-central/search?string=GetVisitedLinkColor MXR Search]
+
Note: Must also be removed from nsIWidget.
  
Code Size: 8
+
===extensions===
  
====PRBool nsCSSPseudoClasses::IsPseudoClass(nsIAtom*)====
+
====nsresult nsCyrXPCOMStringDetector::DoIt(const char*,PRUint32,const char**,nsDetectionConfident&)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=IsPseudoClass MXR Search]
+
[http://mxr.mozilla.org/mozilla-central/search?string=DoIt(&case=1 MXR Search]
  
Code Size: 3
+
Code Size: 19
  
====void nsCSSValue::SetRectIsAutoValue()====
+
====nsresult nsXPCOMStringDetector::DoIt(const char*,PRUint32,const char**,nsDetectionConfident&)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=SetRectIsAutoValue MXR Search]
+
[http://mxr.mozilla.org/mozilla-central/search?string=DoIt(&case=1 MXR Search]
  
Code Size: 3
+
Code Size: 32
  
====PRBool nsCSSPseudoElements::IsPseudoElement(nsIAtom*)====
+
===view===
  
[http://mxr.mozilla.org/mozilla-central/search?string=IsPseudoElement MXR Search] (One use in an NS_ASSERTION)
+
====✓ nsIntPoint nsIView::GetScreenPosition()====
  
Code Size: 3
+
[http://mxr.mozilla.org/mozilla-central/search?string=GetScreenPosition MXR Search]
  
====nsresult nsCSSDeclaration::AppendComment(const nsAString_internal&)====
+
Code Size: 39
  
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z%5DAppendComment%5C%2528&regexp=on&case=on&find=&findi=&filter=%5E%5B%5E%5C0%5D*%2524&hitlimit=&tree=mozilla-central MXR Search]
+
====✓ nsresult nsViewManager::GetViewObserver(nsIViewObserver*&)====
  
Code Size: 2
+
[http://mxr.mozilla.org/mozilla-central/search?string=GetViewObserver MXR Search]
  
====PRInt32 RuleProcessorData::GetNthIndex(PRBool,PRBool,PRBool)====
+
Code Size: 16
  
[http://mxr.mozilla.org/mozilla-central/search?string=GetNthIndex MXR Search] (Called by edgeChildMatches, nthChildGenericMatches, edgeOfTypeMatches)
+
====✓ void nsView::SetPositionIgnoringChildWidgets(nscoord,nscoord)====
  
Code Size: 87
+
[http://mxr.mozilla.org/mozilla-central/search?string=SetPositionIgnoringChildWidgets MXR Search]
  
====PRBool edgeOfTypeMatches(RuleProcessorData&,PRBool,PRBool,PRBool)====
+
Code Size: 14
  
[http://mxr.mozilla.org/mozilla-central/search?string=edgeOfTypeMatches MXR Search] (Called by firstOfTypeMatches, lastOfTypeMatches, onlyOfTypeMatches)
+
====✓ nsresult nsViewManager::MoveViewBy(nsIView*,nscoord,nscoord)====
 
Code Size: 19
 
  
====PRBool nthChildGenericMatches(RuleProcessorData&,PRBool,nsPseudoClassList*,PRBool,PRBool)====
+
[http://mxr.mozilla.org/mozilla-central/search?string=MoveViewBy MXR Search]
  
[http://mxr.mozilla.org/mozilla-central/search?string=nthChildGenericMatches MXR Search] (Called by nthChildMatches, nthLastChildMatches, nthOfTypeMatches, nthLastOfTypeMatches)
+
Code Size: 14
 
Code Size: 30
 
  
====PRBool edgeChildMatches(RuleProcessorData&,PRBool,PRBool,PRBool)====
+
<del>
 +
====nsresult nsViewManager::InsertChild(nsIView*,nsIView*,PRInt32)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=edgeChildMatches MXR Search] (Called by firstChildMatches, lastChildMatches, onlyChildMatches)
+
[http://mxr.mozilla.org/mozilla-central/search?string=InsertChild(&case=1 MXR Search]
  
Code Size: 16
+
Code Size: 10
 +
</del>
  
====PRBool onlyOfTypeMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)====
+
====PRBool nsIView::ExternalIsRoot()====
  
[http://mxr.mozilla.org/mozilla-central/search?string=onlyOfTypeMatches MXR Search]
+
[http://mxr.mozilla.org/mozilla-central/search?string=ExternalIsRoot MXR Search]
  
 
Code Size: 3
 
Code Size: 3
  
====PRBool lastOfTypeMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)====
+
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?
  
[http://mxr.mozilla.org/mozilla-central/search?string=lastOfTypeMatches MXR Search]
 
  
Code Size: 3
+
====void nsIPresShell::SetVerifyReflowEnable(PRBool)====
  
====PRBool firstOfTypeMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)====
+
[http://mxr.mozilla.org/mozilla-central/search?string=SetVerifyReflowEnable MXR Search] (called by ifdef DEBUG code)
  
[http://mxr.mozilla.org/mozilla-central/search?string=firstOfTypeMatches MXR Search]
+
Code Size: 2
  
Code Size: 3
+
====PRBool nsIPresShell::GetVerifyReflowEnable()====
  
====PRBool nthLastOfTypeMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)====
+
[http://mxr.mozilla.org/mozilla-central/search?string=GetVerifyReflowEnable MXR Search] (called by ifdef DEBUG code)
  
[http://mxr.mozilla.org/mozilla-central/search?string=nthLastOfTypeMatches MXR Search]
+
Code Size: 2
  
Code Size: 3
+
===layout/style===
  
====PRBool nthOfTypeMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)====
+
====nsresult nsHTMLStyleSheet::GetType(nsString&)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=nthOfTypeMatches MXR Search]
+
loc: layout/style/nsHTMLStyleSheet.h
  
Code Size: 3
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetType%5C%2528&regexp=on&case=on MXR Search]
  
====PRBool nthLastChildMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)====
+
Code Size: 0, virtual
  
[http://mxr.mozilla.org/mozilla-central/search?string=nthLastChildMatches MXR Search]
+
====nsresult nsIStyleSheet::GetType(nsString&)====
  
Code Size: 3
+
loc: layout/style/nsIStyleSheet.h
  
====PRBool nthLastChildMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)====
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetType%5C%2528&regexp=on&case=on MXR Search]
  
[http://mxr.mozilla.org/mozilla-central/search?string=nthLastChildMatches MXR Search]
+
Code Size: 0, virtual
  
Code Size: 3
+
====nsresult nsCSSStyleSheet::GetType(nsString&)====
  
====PRBool nthChildMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)====
+
loc: layout/style/nsCSSStyleSheet.h
  
[http://mxr.mozilla.org/mozilla-central/search?string=nthChildMatches MXR Search]
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetType%5C%2528&regexp=on&case=on MXR Search]
  
Code Size: 3
+
Code Size: 0, virtual
  
====PRBool onlyChildMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)====
+
====nsresult nsHTMLCSSStyleSheet::GetType(nsString&)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=onlyChildMatches MXR Search]
+
loc: layout/style/nsHTMLCSSStyleSheet.h
  
Code Size: 3
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetType%5C%2528&regexp=on&case=on MXR Search]
  
====PRBool lastChildMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)====
+
Code Size: 4, virtual
  
[http://mxr.mozilla.org/mozilla-central/search?string=lastChildMatches MXR Search]
+
====nsresult nsHTMLStyleSheet::GetParentSheet(nsIStyleSheet*&)====
  
Code Size: 3
+
loc: layout/style/nsHTMLStyleSheet.h
  
====PRBool firstChildMatches(RuleProcessorData&,PRBool,nsPseudoClassList*)====
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetParentSheet%5C%2528&regexp=on&case=on MXR Search]
  
[http://mxr.mozilla.org/mozilla-central/search?string=firstChildMatches MXR Search]
+
Code Size: 0, virtual
  
Code Size: 3
+
====nsresult nsIStyleSheet::GetParentSheet(nsIStyleSheet*&)====
  
===layout/generic===
+
loc: layout/style/nsIStyleSheet.h
  
====void nsFrameList::SortByContentOrder()====
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetParentSheet%5C%2528&regexp=on&case=on MXR Search]
  
[http://mxr.mozilla.org/mozilla-central/search?string=SortByContentOrder MXR Search] (This will take an nsTArray::Sort along with it too)
+
Code Size: 0, virtual
  
Code Size: 35
+
====nsresult nsCSSStyleSheet::GetParentSheet(nsIStyleSheet*&)====
  
====nsIFrame* nsBlockFrame::GetTopBlockChild(nsPresContext*)====
+
loc: layout/style/nsCSSStyleSheet.h
  
[http://mxr.mozilla.org/mozilla-central/search?string=GetTopBlockChild MXR Search]
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetParentSheet%5C%2528&regexp=on&case=on MXR Search]
  
Code Size: 34
+
Code Size: 0, virtual
  
====PRInt32 nsILineIterator::FindLineAt(nscoord)====
+
====nsresult nsHTMLCSSStyleSheet::GetParentSheet(nsIStyleSheet*&)====
  
Code Size: 0 (pure virtual)
+
loc: layout/style/nsHTMLCSSStyleSheet.h
  
====PRInt32 nsLineIterator::FindLineAt(nscoord)====
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DGetParentSheet%5C%2528&regexp=on&case=on MXR Search]
  
Code Size: 27
+
Code Size: 3, virtual
  
====PRInt32 nsTableRowGroupFrame::FindLineAt(nscoord)====
+
===layout/inspector===
  
Code Size: 2
+
====void inSearchLoop::inSearchLoop(inISearchProcess*)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=FindLineAt MXR Search]
+
[http://mxr.mozilla.org/mozilla-central/search?string=inSearchLoop MXR Search] (This'll take an nsCOMPtr::operator= along with it)
  
====nsLineBox* nsLineBox::FindLineContaining(nsLineList&,nsIFrame*,PRInt32*)====
+
Code Size: 11
  
[http://mxr.mozilla.org/mozilla-central/search?string=FindLineContaining MXR Search]
+
*** 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?
  
Code Size: 18
+
===xpcom/components===
  
====PRBool nsFrameList::ContainsFrameBefore(const nsIFrame*,const nsIFrame*)====
+
Don't know if this stuff can be touched
  
[http://mxr.mozilla.org/mozilla-central/search?string=ContainsFrameBefore MXR Search]
+
====nsresult nsServiceManager::GetGlobalServiceManager(nsIServiceManager**)====
  
Code Size: 10
+
[http://mxr.mozilla.org/mozilla-central/search?string=GetGlobalServiceManager MXR Search]
  
====nsFramesetDrag::nsFramesetDrag(PRBool,PRInt32,PRInt32,nsHTMLFramesetFrame*)====
+
Code Size: 15
  
[http://mxr.mozilla.org/mozilla-central/search?string=nsFramesetDrag MXR Search]
+
====nsresult nsServiceManager::ShutdownGlobalServiceManager(nsIServiceManager**)====
  
Code Size: 6
+
[http://mxr.mozilla.org/mozilla-central/search?string=ShutdownGlobalServiceManager MXR Search]
  
====void Area::GetHREF(nsAString_internal&)====
+
Code Size: 2
  
[http://mxr.mozilla.org/mozilla-central/search?string=GetHREF MXR Search] (Pain to check but dead. Note that it's non-virtual from a non-derived class)
+
===xpcom/base===
  
Code Size: 3
+
====nsresult nsTraceRefcntImpl::LogAddRef(void*,nsrefcnt,const char*,PRUint32) et al====
  
====nsRect nsIFrame::GetMarginRect()====
+
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).
  
[http://mxr.mozilla.org/mozilla-central/search?string=GetMarginRect MXR Search]
+
== Called by NS_ASSERTIONs/ifdefine DEBUG etc ==
  
Code Size: 11
+
===layout/style===
  
====PRBool nsIntervalSet::HasPoint(nscoord)====
+
====PRBool nsCSSPseudoElements::IsPseudoElement(nsIAtom*)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=HasPoint MXR Search]
+
loc: layout/style/nsCSSPseudoElements.h
  
Code Size: 10
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DIsPseudoElement%5C%2528&regexp=on&case=on MXR Search]
  
====nsresult nsIFrame::Clip(nsDisplayListBuilder*,const nsDisplayListSet&,const nsDisplayListSet&,const nsRect&)====
+
Code Size: 3, static
  
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-z%5DClip%5C%2528%5B%5E%2529%5D&regexp=1&case=1 MXR Search]
+
== Shouldn't be cross platform ==
  
Code Size: 4
 
  
====nsRect nsIFrame::GetScreenRectInAppUnitsExternal()====
+
===profiles===
  
[http://mxr.mozilla.org/mozilla-central/search?string=GetScreenRectInAppUnitsExternal MXR Search]
+
====nsresult nsProfileDirServiceProvider::SetProfileDir(nsIFile*, nsIFile*)====
  
Code Size: 3
+
loc: profile/dirserviceprovider/public/nsProfileDirServiceProvider.h
  
====void* nsIFrame::GetPropertyExternal(nsIAtom*,nsresult*)====
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DSetProfileDir%5C%2528&regexp=on&case=on MXR Search]
  
[http://mxr.mozilla.org/mozilla-central/search?string=GetPropertyExternal MXR Search] (taken out at some point)
+
Code Size: 112, virtual -- Called in embedding/tests/winEmbed/winEmbed.cpp
  
Code Size: 3
 
  
===layout/tables===
+
====nsresult nsProfileDirServiceProvider::InitProfileDir(nsIFile*)====
  
====void nsTableOuterFrame::BalanceLeftRightCaption(PRUint8,const nsMargin&,const nsMargin&,nscoord&,nscoord&)====
+
loc: profile/dirserviceprovider/public/nsProfileDirServiceProvider.h
  
[http://mxr.mozilla.org/mozilla-central/search?string=BalanceLeftRightCaption MXR Search]
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DInitProfileDir%5C%2528&regexp=on&case=on MXR Search]
  
Code Size: 66
+
Code Size: 142
  
====PRBool nsCellMap::ColHasSpanningCells(PRInt32)====
+
====nsresult nsProfileDirServiceProvider::InitNonSharedProfileDir()====
  
[http://mxr.mozilla.org/mozilla-central/search?string=ColHasSpanningCells MXR Search] (Called by nsTableCellMap::ColHasSpanningCells)
+
loc: profile/dirserviceprovider/public/nsProfileDirServiceProvider.h
  
Code Size: 31
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DInitNonSharedProfileDir%5C%2528&regexp=on&case=on MXR Search]
  
====PRBool nsTableFrame::ColHasSpanningCells(PRInt32)====
+
Code Size: 87
  
[http://mxr.mozilla.org/mozilla-central/search?string=ColHasSpanningCells MXR Search]
+
====nsresult nsProfileDirServiceProvider::UndefineFileLocations()====
  
Code Size: 11
+
loc: profile/dirserviceprovider/public/nsProfileDirServiceProvider.h
  
====PRBool nsTableCellMap::ColHasSpanningCells(PRInt32)====
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DUndefineFileLocations%5C%2528&regexp=on&case=on MXR Search]
  
[http://mxr.mozilla.org/mozilla-central/search?string=ColHasSpanningCells MXR Search] (Called by nsTableFrame::ColHasSpanningCells)
+
Code Size: 77
  
Code Size: 10
+
====nsresult ::NS_NewProfileDirServiceProvider(PRBool, nsProfileDirServiceProvider**)====
  
====PRBool nsTableCellMap::ColIsSpannedInto(PRInt32)====
+
loc: profile/dirserviceprovider/src/nsProfileDirServiceProvider.cpp
  
[http://mxr.mozilla.org/mozilla-central/search?string=ColIsSpannedInto MXR Search] (Called by nsTableFrame::ColIsSpannedInto)
+
[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
 
Code Size: 31
  
====PRBool nsTableFrame::ColIsSpannedInto(PRInt32)====
+
====void nsProfileDirServiceProvider::nsProfileDirServiceProvider(PRBool)====
 +
 
 +
loc: profile/dirserviceprovider/public/nsProfileDirServiceProvider.h
  
[http://mxr.mozilla.org/mozilla-central/search?string=ColIsSpannedInto MXR Search]
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DnsProfileDirServiceProvider%5C%2528&regexp=on&case=on MXR Search]
  
Code Size: 11
+
Code Size: 18
  
====PRBool nsCellMap::IsZeroColSpan(PRInt32,PRInt32)====
+
== False Positives/Stuff that shouldn't be dealt with ==
  
[http://mxr.mozilla.org/mozilla-central/search?string=IsZeroColSpan MXR Search]
+
=== accessible ===
  
Code Size: 14
+
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]
  
====void nsTableFrame::SetColumnWidth(PRInt32,nscoord)====
+
Code Size: 8
  
[http://mxr.mozilla.org/mozilla-central/search?string=SetColumnWidth MXR Search]
+
====PRBool nsBGColorTextAttr::GetValueFor(nsIDOMElement*,nscolor*)====
  
Code Size: 17
+
[http://mxr.mozilla.org/mozilla-central/search?string=GetValueFor%28&case=1 MXR Search]
  
====PRBool nsTableFrame::IsAutoWidth(PRBool*)====
+
Code Size: 7
  
[http://mxr.mozilla.org/mozilla-central/search?string=IsAutoWidth MXR Search]
+
====PRBool nsFontWeightTextAttr::GetValueFor(nsIDOMElement*,PRInt32*)====
  
Code Size: 17
+
[http://mxr.mozilla.org/mozilla-central/search?string=GetValueFor%28&case=1 MXR Search]
  
====PRInt32 nsTableFrame::GetEffectiveCOLSAttribute()====
+
Code Size: 8
  
[http://mxr.mozilla.org/mozilla-central/search?string=GetEffectiveCOLSAttribute MXR Search]
+
Path info: GetValue calls nsCSSTextAttr::Format
  
Code Size: 9
+
====PRBool nsTextAttr::GetValue(nsAString_internal&,int)====
  
====PRBool nsTableFrame::IsPctHeight(nsStyleContext*)====
+
[http://mxr.mozilla.org/mozilla-central/search?string=GetValue this search]
  
[http://mxr.mozilla.org/mozilla-central/search?string=IsPctHeight MXR Search]
+
Code Size: 26
  
Code Size: 8
+
====void nsCSSTextAttr::Format(const nsAutoString&,nsAString_internal&)====
  
===layout/forms===
+
Code Size: 3
  
====nsresult nsComboboxControlFrame::GetOptionSelected(PRInt32,PRBool*)====
+
====void nsTextAttr::Format(const nsAutoString&,nsAString_internal&)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=GetOptionSelected MXR Search]
+
Code Size: 0
  
Code Size: 11
+
====void nsLangTextAttr::Format(const nsAutoString&,nsAString_internal&)====
  
====nsresult nsListControlFrame::GetOptionSelected(PRInt32,PRBool*)====
+
Code Size: 7
  
[http://mxr.mozilla.org/mozilla-central/search?string=GetOptionSelected MXR Search]
+
===layout/xul===
 +
 
 +
====gfxContext* nsContextBoxBlur::GetContext()====
 +
 
 +
[http://mxr.mozilla.org/mozilla-central/search?string=GetContext()&case=1 MXR Search]
  
 
Code Size: 4
 
Code Size: 4
  
====nsresult nsISelectControlFrame::GetOptionSelected(PRInt32,PRBool*)====
+
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=GetOptionSelected MXR Search] (called by nsComboboxControlFrame::GetOptionSelected)
+
[http://mxr.mozilla.org/mozilla-central/search?string=GetScreenRectInAppUnitsExternal MXR Search] roc: may be used outside of tree
  
Code Size: 0 (pure virtual)
+
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
  
====nsMargin nsButtonFrameRenderer::GetFullButtonBorderAndPadding()====
+
====nsCSSProperty nsCSSProps::LookupProperty(const nsACString_internal&)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=GetFullButtonBorderAndPadding MXR Search]
+
[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
 
Code Size: 5
  
====nsMargin nsButtonFrameRenderer::GetButtonOutlineBorderAndPadding()====
+
====nsCSSKeyword nsCSSKeywords::LookupKeyword(const nsACString_internal&)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=GetButtonOutlineBorderAndPadding MXR Search]
+
[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: 3
+
Code Size: 7
  
===layout/mathml===
+
====nsCSSKeyword nsCSSKeywords::LookupKeyword(const nsACString_internal&)====
  
====nsresult nsMathMLFrame::SetEmbellishData(const nsEmbellishData&)====
+
loc: layout/style/nsCSSKeywords.h
  
[http://mxr.mozilla.org/mozilla-central/search?string=SetEmbellishData MXR Search]
+
[http://mxr.mozilla.org/mozilla-central/search?string=%5B%5Ea-zA-Z0-9%5DLookupKeyword%5C%2528&regexp=on&case=on MXR Search]
  
Code Size: 8
+
Code Size: 7, static, nsAString version used
  
====nsresult nsMathMLFrame::SetEmbellishData(const nsEmbellishData&)====
+
====nsCSSValueGradientStop::nsCSSValueGradientStop(const nsCSSValueGradientStop&)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=SetEmbellishData MXR Search]
+
[http://mxr.mozilla.org/mozilla-central/search?string=nsCSSValueGradientStop MXR Search] (Probably not a good idea to remove this)
  
Code Size: 0 (pure virtual)
+
Code Size: 7
  
====nsresult nsMathMLFrame::GetReference(nsPoint&)====
+
====nsCSSCornerSizes::nsCSSCornerSizes(const nsCSSCornerSizes&)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=GetReference(&case=on MXR Search]
+
[http://mxr.mozilla.org/mozilla-central/search?string=nsCSSCornerSizes MXR Search] (Probably not a good idea to remove this)
  
Code Size: 3
+
Code Size: 13
  
====nsresult nsIMathMLFrame::GetReference(nsPoint&)====
+
====nsCSSValueListRect::nsCSSValueListRect(const nsCSSValueListRect&)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=GetReference(&case=on MXR Search]
+
[http://mxr.mozilla.org/mozilla-central/search?string=nsCSSValueListRect MXR Search] (Probably not a good idea to remove this)
  
Code Size: 0 (pure virtual)
+
Code Size: 9
  
====nsresult nsMathMLFrame::SetPresentationData(const nsPresentationData&)====
+
====void nsCSSValue::nsCSSValue(nsCSSValueGradient*)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=SetPresentationData MXR Search]
+
Code Size: 5, !
  
Code Size: 3
+
====void nsCSSValue::nsCSSValue(Image*)====
  
====nsresult nsIMathMLFrame::SetPresentationData(const nsPresentationData&)====
+
Code Size: 5, !
  
[http://mxr.mozilla.org/mozilla-central/search?string=SetPresentationData MXR Search]
+
====void nsCSSValue::nsCSSValue(URL*)====
  
Code Size: 0 (pure virtual)
+
Code Size: 5, !
  
===layout/inspector===
+
====void nsCSSValue::nsCSSValue(Array*,nsCSSUnit)====
  
====void inSearchLoop::inSearchLoop(inISearchProcess*)====
+
Code Size: 5, !
  
[http://mxr.mozilla.org/mozilla-central/search?string=inSearchLoop MXR Search] (This'll take an nsCOMPtr::operator= along with it)
+
====void nsCSSValue::nsCSSValue(float,nsCSSUnit)====
  
Code Size: 11
+
Code Size: 5, !
  
*** 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?
+
[http://mxr.mozilla.org/mozilla-central/search?string=nsCSSValue( nsCSSValue( MXR Search]
  
===xpcom/components===
+
dbaron: maintain the correspondence between setters and constructors
  
Don't know if this stuff can be touched
+
===content/html===
  
====nsresult nsServiceManager::GetGlobalServiceManager(nsIServiceManager**)====
+
====nsresult nsGenericHTMLElement::SetFloatAttr(nsIAtom*,float)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=GetGlobalServiceManager MXR Search]
+
Code Size: 6
  
Code Size: 15
+
[http://mxr.mozilla.org/mozilla-central/search?string=SetFloatAttr MXR Search] * Will be used for HTML5
  
====nsresult nsServiceManager::ShutdownGlobalServiceManager(nsIServiceManager**)====
+
====nsresult nsGenericHTMLElement::GetFloatAttr(nsIAtom*,float,float*)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=ShutdownGlobalServiceManager MXR Search]
+
[http://mxr.mozilla.org/mozilla-central/search?string=GetFloatAttr MXR Search] * Will be used for HTML5
  
Code Size: 2
+
Code Size: 15
  
===xpcom/base===
+
====nsresult nsHTMLDNSPrefetch::PrefetchHigh(nsAString_internal&)====
  
===nsresult nsTraceRefcntImpl::LogAddRef(void*,nsrefcnt,const char*,PRUint32) et al===
+
[http://mxr.mozilla.org/mozilla-central/search?string=PrefetchHigh MXR Search] * - Meant as forward looking API
  
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).
+
Code Size: 3
  
== Bugs/Strangeness ==
+
====nsresult nsHTMLDNSPrefetch::PrefetchHigh(Link*)====
  
===layout/xul===
+
[http://mxr.mozilla.org/mozilla-central/search?string=PrefetchHigh MXR Search] * - Meant as forward looking API
  
====void nsBox::CoordNeedsRecalc(PRInt32&)====
+
Code Size: 3
  
[http://mxr.mozilla.org/mozilla-central/search?string=CoordNeedsRecalc MXR Search]
+
====nsresult nsHTMLDNSPrefetch::PrefetchMedium(nsAString_internal&)====
 
 
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.
+
[http://mxr.mozilla.org/mozilla-central/search?string=PrefetchMedium MXR Search] * - Meant as forward looking API
  
====void nsListBoxBodyFrame::SetRowHeight(nscoord)====
+
Code Size: 3
  
[http://mxr.mozilla.org/mozilla-central/search?string=SetRowHeight MXR Search]
+
====nsresult nsHTMLDNSPrefetch::PrefetchMedium(Link*)====
  
Code Size: 41
+
[http://mxr.mozilla.org/mozilla-central/search?string=PrefetchMedium MXR Search] * - Meant as forward looking API
  
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.
+
Code Size: 3

Latest revision as of 09:40, 10 December 2011

Note: Code Size is a count of the number of GIMPLE instructions during pass cfg.

Contents

Unconditionally Dead

xpfe/components/intl

nsresult nsCharsetMenu::SetCharsetCheckmark(nsString*, PRBool)

MXR Search

Code Size: 75

content/base

✓ PRBool nsParserUtils::GetQuotedAttrNameAt(const nsString&,PRUint32,nsAString_internal&)

Declaration Definition MXR Search *

Code Size: 96, Static method

✓ nsIContent* nsContentUtils::FindFirstChildWithResolvedTag(nsIContent*,PRInt32,nsIAtom*)

Declaration Definition MXR Search *

Code Size: 92, Static method

✓ nsIDocShell* nsContentUtils::GetDocShellFromCaller()

Declaration Definition MXR Search *

Code Size: 33, Static method

✓ nsIContent* nsContentUtils::GetReferencedElement(nsIURI*,nsIContent*)

MXR Search *

Code Size: 6, Static method

✓ void nsXMLNameSpaceMap::RemovePrefix(nsIAtom*)

Declaration Definition MXR Search *

Code Size: 3, NS_HIDDEN_

✓ nsresult nsPlainTextSerializer::WillProcessTokens()

MXR Search (forgot to include this in original patch)

Code Size: 2

nsresult nsAttrAndChildArray::SetAttr(nsIAtom*,const nsAString_internal&)

Run this search. Save page to file. grep for lines with only one comma: grep "^[^,]*,[^,]*$"

Code Size: 71

content/html

✓ void nsGenericHTMLElement::GetHrefURIToMutate(nsIURI**)

MXR Search *

Code Size: 3

✓ PRBool SinkContext::IsAncestorContainer(nsHTMLTag)

MXR Search *

Code Size: 13

✓ nsresult nsHTMLFragmentContentSink::AddTextToContent(nsIContent*,const nsAString_internal&)

MXR Search *

Code Size: 26

✓ void nsXHTMLContentSerializer::AppendToString(const PRUnichar*, PRInt32, nsAString_internal&)

loc: content/base/src/nsXHTMLContentSerializer.h

MXR Search

Code Size: 0, virtual

✓ void nsXMLContentSerializer::AppendToString(const PRUnichar*, PRInt32, nsAString_internal&)

loc: content/base/src/nsXMLContentSerializer.h

MXR Search

Code Size: 0, virtual

nsresult nsHTMLDocument::GetLinkColor(nsAString& aLinkColor)

MXR Search (Discovered by accident when verifying nsHTMLStyleSheet::GetLinkColor)

Code Size: 12 LOC (nevermind: it's scriptable)

content/media

nsresult nsMediaCacheStream::ReadFromCache(char*,PRInt64,PRInt64)

MXR Search *

Code Size: 82

content/events

nsresult nsPrivateTextRange::SetRangeType(PRUint16)

MXR Search

Code Size: 3

nsresult nsPrivateTextRange::SetRangeEnd(PRUint16)

MXR Search

Code Size: 3

nsresult nsPrivateTextRange::SetRangeStart(PRUint16)

MXR Search

Code Size: 3

content/xslt

MBool txDouble::isNeg(double)

MXR Search

Code Size: 5

PRInt32 txNamespaceMap::lookupNamespace(const nsAString_internal&)

MXR Search Bug

Code Size: 8

Note: Only lookupNamespace(nsIAtom*) is used

txXPathNode* txXPathNodeUtils::getDocument(const txXPathNode&)

MXR Search Bug

Code Size: 11

PRBool txEarlyEvalContext::isStripSpaceAllowed(const txXPathNode&)

MXR Search

Code Size: 2

PRBool txExecutionState::isStripSpaceAllowed(const txXPathNode&)

MXR Search

Code Size: 6

PRBool txXSLTParamContext::isStripSpaceAllowed(const txXPathNode&)

MXR Search

Code Size: 2

Note: Difficult to check but all PRBool isStripSpaceAllowed functions are dead. There are a number of MBool isStripSpaceAllowed functions which are not, however.

nsresult txResultRecycler::getNodeSet(const txXPathNode&,txNodeSet**)

MXR Search Bug

Code Size: 29

content/xul

✓ PRBool TestNode::HasAncestor(const ReteNode*)

MXR Search

Code Size: 11

✓ PRBool nsXULDocument::ContextStack::IsInsideXULTemplate()

MXR Search

Code Size: 16

content/xbl

nsCOMArray* nsXBLPrototypeBinding::GetStyleSheets()

MXR Search

Code Size: 6

content/canvas

✓ void mozilla::CanvasUtils::LogMessagef(const char*)

MXR Search

Code Size: 24

✓ void mozilla::CanvasUtils::LogMessage(const nsCString&)

MXR Search Difficult to verify

Code Size: 26

modules/libreg

REGERR NR_RegIsWritable(HREG)

MXR Search

Code Size: 18

REGERR VR_PackRegistry(void*,nr_RegPackCallbackFunc)

MXR Search

Code Size: 9

Path Info: VR_UninstallEnumSharedFiles calls NR_RegEnumEntries

REGERR NR_RegEnumEntries(HREG,RKEY,REGENUM*,char*,uint32,REGINFO*)

MXR Search

Code Size: 60

REGERR VR_UninstallEnumSharedFiles(char*,REGENUM*,char*,uint32)

MXR Search

Code Size: 57

Note: NR_RegEnumEntries is called by nr_addNodesToNewReg which is #ifdef RESURRECT_LATER here http://mxr.mozilla.org/mozilla-central/source/modules/libreg/src/reg.c#3650 (with a comment saying resurrect after mozilla 1)

Path Info: VR_PackRegistry calls NR_RegPack

REGERR NR_RegPack(HREG,void*,nr_RegPackCallbackFunc)

MXR Search

Code Size: 2

REGERR VR_PackRegistry(void*,nr_RegPackCallbackFunc)

MXR Search

Code Size: 9

modules/libpref

nsresult PREF_GetCharPref(const char*,char*,int*,PRBool)

MXR Search

Code Size: 47

modules/plugin

bool mozilla::plugins::parent::::_tostring(NPObject*,NPVariant*)

MXR Search

Code Size: 7

accessible

✓ const gchar* ::getDocumentTypeCB(AtkDocument*)

loc: accessible/src/atk/nsMaiInterfaceDocument.cpp

MXR Search (dead callback function - woohoo)

Code Size: 42

Path info: AddTargetFromChildrenHavingIDRefsAttr calls GetElementsHavingIDRefsAttr which calls GetElementsHavingIDRefsAttrImpl.

✓ void nsCoreUtils::GetElementsHavingIDRefsAttrImpl(nsIContent*,nsCString&,nsIAtom*,nsIMutableArray*)

MXR Search

Code Size: 42, ^

✓ void nsCoreUtils::GetElementsHavingIDRefsAttr(nsIContent*,nsIContent*,nsIAtom*,nsIArray**)

MXR Search

Code Size: 0? Really?, ^

✓ nsresult nsRelUtils::AddTargetFromChildrenHavingIDRefsAttr(PRUint32,nsIAccessibleRelation**,nsIContent*,nsIContent*,nsIAtom*)

MXR Search

Code Size: 52, ^

✓ already_AddRefed nsAccUtils::QueryAccessibleTable(nsIAccessibleTable*)

MXR Search

Code Size: 7, ^

✓ already_AddRefed nsCoreUtils::GetLastSensibleColumn(nsITreeBoxObject*)

MXR Search

Code Size: 40, ^

embedding/components/windowwatcher

✓ nsIScriptGlobalObject* nsWWJSUtils::GetStaticScriptGlobal(JSContext*,JSObject*)

Declaration Definition MXR Search

Code Size: 45, Static method

✓ nsIScriptContext* nsWWJSUtils::GetStaticScriptContext(JSContext*,JSObject*)

Declaration Definition MXR Search

Code Size: 10, Static method

gfx/thebes/public

Path info: MapCharToGlyph calls MapCharToGlyphFormat4

PRUint32 gfxFontUtils::MapCharToGlyphFormat4(const PRUint8*,PRUnichar)

Declaration Definition MXR Search

Code Size: 92, Static method, class marked THEBES_API

PRUint32 gfxFontUtils::MapCharToGlyph(PRUint8*,PRUint32,PRUnichar)

Declaration Definition MXR Search

Code Size: 11, Static method, class marked THEBES_API

gfx/src/thebes

Path info: GetTextDimensions calls GetTextDimensionsInternal

✓ nsresult nsThebesRenderingContext::GetTextDimensions(const PRUnichar*,PRInt32,PRInt32,PRInt32*,PRInt32,nsTextDimensions&,PRInt32&,nsTextDimensions&,PRInt32*)

MXR Search

Code Size: 56

✓ nsresult nsThebesRenderingContext::GetTextDimensionsInternal(const PRUnichar*,PRInt32,PRInt32,PRInt32*,PRInt32,nsTextDimensions&,PRInt32&,nsTextDimensions&,PRInt32*)

MXR Search

Code Size: 2

void nsRenderingContext::InvertRect(nscoord, nscoord, nscoord, nscoord)

MXR Search

Note: The 9 argument versions of these functions are not called. The same functions may be removed from nsIThebesFontMetrics, nsThebesFontMetrics and nsIThebesRenderingContext

nsresult nsThebesRenderingContext::DrawEllipse(const nsRect&)

MXR Search

Code Size: 10

Note: 1-arg func never used. Must be removed from nsIThebesRenderingContext as well

modules/libpr0n

PRUint32 imgFrame::GetImageBytesPerRow()

Declaration Definition MXR Search

Code Size: 11

PRInt32 imgFrame::GetHeight()

Declaration Definition MXR Search (Dead, but a pain to check)

Code Size: 2

PRInt32 imgFrame::GetWidth()

Declaration Definition MXR Search (Dead, but a pain to check)

Code Size: 2

PRInt32 imgFrame::GetY()

Declaration Definition MXR Search (impossible to check)

Code Size: 2

PRInt32 imgFrame::GetX()

Declaration Definition MXR Search (impossible to check)

Code Size: 2

editor

✓ nsresult nsHTMLCSSUtils::RemoveCSSProperty(nsIDOMElement*,const nsAString_internal&)

MXR Search

Code Size: 28

nsresult nsTextServicesDocument::GetDocument(nsIDOMDocument**)

loc: editor/txtsvc/src/nsTextServicesDocument.h

MXR Search

Code Size: 0, virtual

nsresult nsITextServicesDocument::GetDocument(nsIDOMDocument**)

loc: editor/txtsvc/public/nsITextServicesDocument.h

MXR Search

Code Size: 0, virtual

API?

nsresult nsDOMSubtreeIterator::Init(nsIDOMNode*)

loc: editor/libeditor/base/nsEditorUtils.h

MXR Search

Code Size: 30

void nsDOMIterator::ForEach(nsDomIterFunctor&)

loc: editor/libeditor/base/nsEditorUtils.h

MXR Search

Code Size: 42

void* nsDomIterFunctor::operator()(nsIDOMNode*)

loc: editor/libeditor/base/nsEditorUtils.h

MXR Search

Code Size: 0, virtual

nsresult EditAggregateTxn::GetCount(PRUint32*)

loc: editor/libeditor/base/EditAggregateTxn.h

MXR Search

Code Size: 7, virtual

nsresult EditAggregateTxn::GetTxnAt(PRInt32, EditTxn**)

loc: editor/libeditor/base/EditAggregateTxn.h

MXR Search

Code Size: 27, virtual

nsresult EditAggregateTxn::SetName(nsIAtom*)

loc: editor/libeditor/base/EditAggregateTxn.h

MXR Search

Code Size: 7, virtual

✓ nsresult nsHTMLEditor::GetBlockSection(nsIDOMNode*, nsIDOMNode**, nsIDOMNode**)

loc: editor/libeditor/html/nsHTMLEditor.h

MXR Search

Code Size: 127, static, called by GetBlockSectionsForRange

✓ nsresult nsHTMLEditor::GetBlockSectionsForRange(nsIDOMRange*, nsCOMArray&)

loc: editor/libeditor/html/nsHTMLEditor.h

MXR Search

Code Size: 189, static

nsresult nsHTMLEditor::IsRootTag(nsString&, PRBool&)

loc: editor/libeditor/html/nsHTMLEditor.h

MXR Search

Code Size: 16, virtual

nsresult TypeInState::SetProp(nsIAtom*)

loc: editor/libeditor/html/TypeInState.h

MXR Search

Code Size: 5

nsresult TypeInState::SetProp(nsIAtom*, const nsString&)

loc: editor/libeditor/html/TypeInState.h

MXR Search

Code Size: 4

nsresult TypeInState::ClearProp(nsIAtom*)

loc: editor/libeditor/html/TypeInState.h

MXR Search

Code Size: 4

nsresult TypeInState::GetTypingState(PRBool&, PRBool&, nsIAtom*, const nsString&)

loc: editor/libeditor/html/TypeInState.h

MXR Search

Code Size: 3

PRBool nsHTMLEditUtils::IsAddress(nsIDOMNode*)

loc: editor/libeditor/html/nsHTMLEditUtils.h

MXR Search

Code Size: 4, static

nsresult nsHTMLEditRules::DidDeleteRange(nsIDOMRange*)

loc: editor/libeditor/html/nsHTMLEditRules.h

MXR Search

Code Size: 2, virtual

nsresult nsHTMLEditRules::WillDeleteRange(nsIDOMRange*)

loc: editor/libeditor/html/nsHTMLEditRules.h

MXR Search

Code Size: 6, virtual

nsresult ::NS_NewComposerCommandsUpdater(nsISelectionListener**)

loc: editor/composer/src/nsComposerCommandsUpdater.cpp

MXR Search

Code Size: 15

API?

security

Path Info:

CommonAsyncVerifySignature is called by AsyncVerifySignature and AsyncVerifyDetachedSignature.

nsresult nsCMSMessage::CommonAsyncVerifySignature(nsISMimeVerificationListener*,unsigned char*,PRUint32)

MXR Search

Code Size: 43

nsresult nsCMSMessage::AsyncVerifyDetachedSignature(nsISMimeVerificationListener*,unsigned char*,PRUint32)

MXR Search

Code Size: 6

nsresult nsCMSMessage::AsyncVerifySignature(nsISMimeVerificationListener*)

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

MXR Search

Code Size: 4

void nsNSSCertTrust::SetTrustedCA()

loc: security/manager/ssl/src/nsNSSCertTrust.h

MXR Search

Code Size: 4

void nsNSSCertTrust::SetTrustedPeer()

loc: security/manager/ssl/src/nsNSSCertTrust.h

MXR Search

Code Size: 4

void nsNSSCertTrust::SetUser()

loc: security/manager/ssl/src/nsNSSCertTrust.h

MXR Search

Code Size: 4

PRBool nsNSSCertTrust::HasCA(PRBool, PRBool, PRBool)

loc: security/manager/ssl/src/nsNSSCertTrust.h

MXR Search

Code Size: 29

PRBool nsNSSCertTrust::HasUser(PRBool, PRBool, PRBool)

loc: security/manager/ssl/src/nsNSSCertTrust.h

MXR Search

Code Size: 29

void nsX509CertValidity::nsX509CertValidity()

loc: security/manager/ssl/src/nsNSSCertValidity.h

MXR Search

Code Size: 7

nsresult nsNSSSocketInfo::SetExternalErrorReporting(PRBool)

loc: security/manager/ssl/src/nsNSSIOLayer.h

MXR Search

Code Size: 4

nsresult nsNSSSocketInfo::GetForSTARTTLS(PRBool*)

loc: security/manager/ssl/src/nsNSSIOLayer.h

MXR Search

Code Size: 5

nsresult nsNSSSocketInfo::GetForSTARTTLS(PRBool*)

loc: security/manager/ssl/src/nsNSSIOLayer.h

MXR Search

Code Size: 5

nsresult nsNSSSocketInfo::GetFileDescPtr(PRFileDesc**)

loc: security/manager/ssl/src/nsNSSIOLayer.h

MXR Search

Code Size: 4

nsresult nsNSSSocketInfo::GetCert(nsIX509Cert**)

loc: security/manager/ssl/src/nsNSSIOLayer.h

MXR Search

Code Size: 11

PRBool nsNSSActivityState::isBlockingUIActive()

loc: security/manager/ssl/src/nsNSSShutDown.h

MXR Search

Code Size: 8

nsresult nsCRMFObject::init()

loc: security/manager/ssl/src/nsCrypto.h

MXR Search

Code Size: 2

PRBool ::confirm_user(const PRUnichar*)

loc: security/manager/ssl/src/nsCrypto.cpp

MXR Search

Code Size: 36

void nsCRLInfo::nsCRLInfo()

loc: security/manager/ssl/src/nsCRLInfo.h

MXR Search

Code Size: 20

void nsOCSPResponder::nsOCSPResponder()

loc: security/manager/ssl/src/nsOCSPResponder.h

MXR Search

Code Size: 10

void nsCertTreeDispInfo::nsCertTreeDispInfo(nsCertTreeDispInfo&)

loc: security/manager/ssl/src/nsCertTree.h

MXR Search

Code Size: 29

nsresult nsNSSComponent::RememberCert(CERTCertificate*)

loc: security/manager/ssl/src/nsNSSComponent.h

MXR Search

Code Size: 0, virtual

nsresult nsINSSComponent::RememberCert(CERTCertificate*)

loc: security/manager/ssl/src/nsNSSComponent.h

MXR Search

Code Size: 0, virtual

nsresult nsNSSComponent::NSSBundleFormatStringFromName(const char*, const PRUnichar**, PRUint32, nsAString_internal&)

loc: security/manager/ssl/src/nsNSSComponent.h

MXR Search

Code Size: 0, virtual

nsresult nsINSSComponent::NSSBundleFormatStringFromName(const char*, const PRUnichar**, PRUint32, nsAString_internal&)

loc: security/manager/ssl/src/nsNSSComponent.h

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)

MXR Search

Code Size: 42

Note: Must also be removed from nsICaseConversion

✓ PRUint16* MapperToCCMap(nsICharRepresentable*)

MXR Search

Code Size: 15

✓ void nsBufferDecoderSupport::DoubleBuffer()

MXR Search

Code Size: 19

✓ nsresult nsDetectionAdaptor::ProcessTokens()

MXR Search

Code Size: 2

✓ nsresult nsDetectionAdaptor::WillAddToken(CToken&)

MXR Search

Code Size: 2

Note: ProcessTokens and WillAddTokens must be removed from nsIParserFilter as well.

nsDebugDetector::nsDebugDetector(nsDebugDetectorSel)

MXR Search

Code Size: 10

dom

nsresult nsIScriptGlobalObject::HandleScriptError(nsScriptErrorEvent*,nsEventStatus*)

MXR Search

Code Size: 3

void nsJSContext::SetDefaultLanguageVersion(PRUint32)

loc: dom/base/nsJSEnvironment.h

MXR Search

Code Size: 0, virtual

void nsIScriptContext::SetDefaultLanguageVersion(PRUint32)

loc: dom/base/nsIScriptContext.h

MXR Search

Code Size: 0, virtual

parser

void nsCParserNode::SetGenericState(PRBool)

MXR Search

Code Size: 3

PRBool nsCParserNode::GetGenericState()

MXR Search

Code Size: 3

const nsAString_internal& nsCParserNode::GetTagName()

MXR Search

Code Size: 3

void nsCParserNode::GetSource(nsString&)

Code Size: 22

MXR Search

void nsCParserStartNode::GetSource(nsString&)

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()

MXR Search

Code Size: 7

nsTagEntry* nsDTDContext::PopEntry()

MXR Search

Code Size: 7

nsCParserNode* nsDTDContext::PopStyle()

MXR Search

Code Size: 18

nsTagEntry* nsDTDContext::LastEntry()

MXR Search

Code Size: 6

nsHTMLTag nsEntryStack::First()

MXR Search

Code Size: 7

nsHTMLTag nsDTDContext::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)

MXR Search

Code Size: 17

widget

PRBool confirm_overwrite_file(GtkWidget*,nsILocalFile*)

MXR Search

Code Size: 95

nsresult nsDeviceContextSpecGTK::GetPrintMethod(PrintMethod&)

MXR Search

Code Size: 4

void nsPrinterFeatures::SetMultipleConcurrentDeviceContextsSupported(PRBool)

MXR Search

Code Size: 2

nsCursor nsBaseWidget::GetCursor()

MXR Search

Code Size: 2

Note: Must also be removed from nsIWidget.

extensions

nsresult nsCyrXPCOMStringDetector::DoIt(const char*,PRUint32,const char**,nsDetectionConfident&)

MXR Search

Code Size: 19

nsresult nsXPCOMStringDetector::DoIt(const char*,PRUint32,const char**,nsDetectionConfident&)

MXR Search

Code Size: 32

view

✓ nsIntPoint nsIView::GetScreenPosition()

MXR Search

Code Size: 39

✓ nsresult nsViewManager::GetViewObserver(nsIViewObserver*&)

MXR Search

Code Size: 16

✓ void nsView::SetPositionIgnoringChildWidgets(nscoord,nscoord)

MXR Search

Code Size: 14

✓ nsresult nsViewManager::MoveViewBy(nsIView*,nscoord,nscoord)

MXR Search

Code Size: 14

nsresult nsViewManager::InsertChild(nsIView*,nsIView*,PRInt32)

MXR Search

Code Size: 10

PRBool nsIView::ExternalIsRoot()

MXR Search

Code Size: 3

Note: Used in an NS_ASSERTION here. Why not just call nsIView::IsRoot?


void nsIPresShell::SetVerifyReflowEnable(PRBool)

MXR Search (called by ifdef DEBUG code)

Code Size: 2

PRBool nsIPresShell::GetVerifyReflowEnable()

MXR Search (called by ifdef DEBUG code)

Code Size: 2

layout/style

nsresult nsHTMLStyleSheet::GetType(nsString&)

loc: layout/style/nsHTMLStyleSheet.h

MXR Search

Code Size: 0, virtual

nsresult nsIStyleSheet::GetType(nsString&)

loc: layout/style/nsIStyleSheet.h

MXR Search

Code Size: 0, virtual

nsresult nsCSSStyleSheet::GetType(nsString&)

loc: layout/style/nsCSSStyleSheet.h

MXR Search

Code Size: 0, virtual

nsresult nsHTMLCSSStyleSheet::GetType(nsString&)

loc: layout/style/nsHTMLCSSStyleSheet.h

MXR Search

Code Size: 4, virtual

nsresult nsHTMLStyleSheet::GetParentSheet(nsIStyleSheet*&)

loc: layout/style/nsHTMLStyleSheet.h

MXR Search

Code Size: 0, virtual

nsresult nsIStyleSheet::GetParentSheet(nsIStyleSheet*&)

loc: layout/style/nsIStyleSheet.h

MXR Search

Code Size: 0, virtual

nsresult nsCSSStyleSheet::GetParentSheet(nsIStyleSheet*&)

loc: layout/style/nsCSSStyleSheet.h

MXR Search

Code Size: 0, virtual

nsresult nsHTMLCSSStyleSheet::GetParentSheet(nsIStyleSheet*&)

loc: layout/style/nsHTMLCSSStyleSheet.h

MXR Search

Code Size: 3, virtual

layout/inspector

void inSearchLoop::inSearchLoop(inISearchProcess*)

MXR Search (This'll take an nsCOMPtr::operator= along with it)

Code Size: 11

      • Upon further examination, the whole layout/inspector module seems unused. All of the classes from these files end up in an NS_GENERIC_FACTORY_CONSTRUCTOR (except inSearchLoop). The Makefile also claims "This library is used by other shared libs in a static build". Reading this mdc page, this is apparently used for the DOM Inspector, but does it/should it make its way into libxul?

xpcom/components

Don't know if this stuff can be touched

nsresult nsServiceManager::GetGlobalServiceManager(nsIServiceManager**)

MXR Search

Code Size: 15

nsresult nsServiceManager::ShutdownGlobalServiceManager(nsIServiceManager**)

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 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

MXR Search

Code Size: 3, static

Shouldn't be cross platform

profiles

nsresult nsProfileDirServiceProvider::SetProfileDir(nsIFile*, nsIFile*)

loc: profile/dirserviceprovider/public/nsProfileDirServiceProvider.h

MXR Search

Code Size: 112, virtual -- Called in embedding/tests/winEmbed/winEmbed.cpp


nsresult nsProfileDirServiceProvider::InitProfileDir(nsIFile*)

loc: profile/dirserviceprovider/public/nsProfileDirServiceProvider.h

MXR Search

Code Size: 142

nsresult nsProfileDirServiceProvider::InitNonSharedProfileDir()

loc: profile/dirserviceprovider/public/nsProfileDirServiceProvider.h

MXR Search

Code Size: 87

nsresult nsProfileDirServiceProvider::UndefineFileLocations()

loc: profile/dirserviceprovider/public/nsProfileDirServiceProvider.h

MXR Search

Code Size: 77

nsresult ::NS_NewProfileDirServiceProvider(PRBool, nsProfileDirServiceProvider**)

loc: profile/dirserviceprovider/src/nsProfileDirServiceProvider.cpp

MXR Search

Code Size: 31

void nsProfileDirServiceProvider::nsProfileDirServiceProvider(PRBool)

loc: profile/dirserviceprovider/public/nsProfileDirServiceProvider.h

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*)

MXR Search

Code Size: 8

PRBool nsBGColorTextAttr::GetValueFor(nsIDOMElement*,nscolor*)

MXR Search

Code Size: 7

PRBool nsFontWeightTextAttr::GetValueFor(nsIDOMElement*,PRInt32*)

MXR Search

Code Size: 8

Path info: GetValue calls nsCSSTextAttr::Format

PRBool nsTextAttr::GetValue(nsAString_internal&,int)

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()

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()

MXR Search roc: may be used outside of tree

Code Size: 3

=== layout/style

nsCSSFontDesc nsCSSProps::LookupFontDesc(const nsACString_internal&)

MXR Search (Only the nsAString version is apparently used but what about this line?)

Code Size: 4

nsCSSProperty nsCSSProps::LookupProperty(const nsACString_internal&)

MXR Search Only nsAString version used (maybe)

Code Size: 5

nsCSSKeyword nsCSSKeywords::LookupKeyword(const nsACString_internal&)

MXR Search (Only the nsAString version is apparently used but what about this line?)

Code Size: 7

nsCSSKeyword nsCSSKeywords::LookupKeyword(const nsACString_internal&)

loc: layout/style/nsCSSKeywords.h

MXR Search

Code Size: 7, static, nsAString version used

nsCSSValueGradientStop::nsCSSValueGradientStop(const nsCSSValueGradientStop&)

MXR Search (Probably not a good idea to remove this)

Code Size: 7

nsCSSCornerSizes::nsCSSCornerSizes(const nsCSSCornerSizes&)

MXR Search (Probably not a good idea to remove this)

Code Size: 13

nsCSSValueListRect::nsCSSValueListRect(const nsCSSValueListRect&)

MXR Search (Probably not a good idea to remove this)

Code Size: 9

void nsCSSValue::nsCSSValue(nsCSSValueGradient*)

Code Size: 5, !

void nsCSSValue::nsCSSValue(Image*)

Code Size: 5, !

void nsCSSValue::nsCSSValue(URL*)

Code Size: 5, !

void nsCSSValue::nsCSSValue(Array*,nsCSSUnit)

Code Size: 5, !

void nsCSSValue::nsCSSValue(float,nsCSSUnit)

Code Size: 5, !

nsCSSValue( MXR Search

dbaron: maintain the correspondence between setters and constructors

content/html

nsresult nsGenericHTMLElement::SetFloatAttr(nsIAtom*,float)

Code Size: 6

MXR Search * Will be used for HTML5

nsresult nsGenericHTMLElement::GetFloatAttr(nsIAtom*,float,float*)

MXR Search * Will be used for HTML5

Code Size: 15

nsresult nsHTMLDNSPrefetch::PrefetchHigh(nsAString_internal&)

MXR Search * - Meant as forward looking API

Code Size: 3

nsresult nsHTMLDNSPrefetch::PrefetchHigh(Link*)

MXR Search * - Meant as forward looking API

Code Size: 3

nsresult nsHTMLDNSPrefetch::PrefetchMedium(nsAString_internal&)

MXR Search * - Meant as forward looking API

Code Size: 3

nsresult nsHTMLDNSPrefetch::PrefetchMedium(Link*)

MXR Search * - Meant as forward looking API

Code Size: 3