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

From CDOT Wiki
Jump to: navigation, search
Line 32: Line 32:
 
====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] *
  
 
Code Size: 3
 
Code Size: 3
Line 40: Line 40:
 
Code Size: 6
 
Code Size: 6
  
[http://mxr.mozilla.org/mozilla-central/search?string=SetFloatAttr MXR Search] (One use in a dead macro)
+
[http://mxr.mozilla.org/mozilla-central/search?string=SetFloatAttr MXR Search] (One use in a dead macro) *
  
 
====nsresult nsGenericHTMLElement::GetFloatAttr(nsIAtom*,float,float*)====
 
====nsresult nsGenericHTMLElement::GetFloatAttr(nsIAtom*,float,float*)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=GetFloatAttr MXR Search] One use in a dead macro
+
[http://mxr.mozilla.org/mozilla-central/search?string=GetFloatAttr MXR Search] (One use in a dead macro) *
  
 
Code Size: 15
 
Code Size: 15
Line 50: Line 50:
 
====nsresult nsHTMLDNSPrefetch::PrefetchHigh(nsAString_internal&)====
 
====nsresult nsHTMLDNSPrefetch::PrefetchHigh(nsAString_internal&)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=PrefetchHigh MXR Search]
+
[http://mxr.mozilla.org/mozilla-central/search?string=PrefetchHigh MXR Search] *
  
 
Code Size: 3
 
Code Size: 3
Line 56: Line 56:
 
====nsresult nsHTMLDNSPrefetch::PrefetchHigh(Link*)====
 
====nsresult nsHTMLDNSPrefetch::PrefetchHigh(Link*)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=PrefetchHigh MXR Search]
+
[http://mxr.mozilla.org/mozilla-central/search?string=PrefetchHigh MXR Search] *
  
 
Code Size: 3
 
Code Size: 3
Line 62: Line 62:
 
====nsresult nsHTMLDNSPrefetch::PrefetchMedium(nsAString_internal&)====
 
====nsresult nsHTMLDNSPrefetch::PrefetchMedium(nsAString_internal&)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=PrefetchMedium MXR Search]
+
[http://mxr.mozilla.org/mozilla-central/search?string=PrefetchMedium MXR Search] *
  
 
Code Size: 3
 
Code Size: 3
Line 68: Line 68:
 
====nsresult nsHTMLDNSPrefetch::PrefetchMedium(Link*)====
 
====nsresult nsHTMLDNSPrefetch::PrefetchMedium(Link*)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=PrefetchMedium MXR Search]
+
[http://mxr.mozilla.org/mozilla-central/search?string=PrefetchMedium MXR Search] *
  
 
Code Size: 3
 
Code Size: 3
Line 74: Line 74:
 
====PRBool SinkContext::IsAncestorContainer(nsHTMLTag)====
 
====PRBool SinkContext::IsAncestorContainer(nsHTMLTag)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=IsAncestorContainer MXR Search]
+
[http://mxr.mozilla.org/mozilla-central/search?string=IsAncestorContainer MXR Search] *
  
 
Code Size: 13
 
Code Size: 13
Line 80: Line 80:
 
====nsresult nsHTMLFragmentContentSink::AddTextToContent(nsIContent*,const nsAString_internal&)====
 
====nsresult nsHTMLFragmentContentSink::AddTextToContent(nsIContent*,const nsAString_internal&)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=AddTextToContent MXR Search]
+
[http://mxr.mozilla.org/mozilla-central/search?string=AddTextToContent MXR Search] *
  
 
Code Size: 26
 
Code Size: 26
Line 88: Line 88:
 
====nsresult nsMediaCacheStream::ReadFromCache(char*,PRInt64,PRInt64)====
 
====nsresult nsMediaCacheStream::ReadFromCache(char*,PRInt64,PRInt64)====
  
[http://mxr.mozilla.org/mozilla-central/search?string=ReadFromCache MXR Search]
+
[http://mxr.mozilla.org/mozilla-central/search?string=ReadFromCache MXR Search] *
  
 
Code Size: 82
 
Code Size: 82

Revision as of 18:53, 3 March 2010

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

Contents

content/base

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

Declaration DefinitionMXR 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_

content/html

void nsGenericHTMLElement::GetHrefURIToMutate(nsIURI**)

MXR Search *

Code Size: 3

nsresult nsGenericHTMLElement::SetFloatAttr(nsIAtom*,float)

Code Size: 6

MXR Search (One use in a dead macro) *

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

MXR Search (One use in a dead macro) *

Code Size: 15

nsresult nsHTMLDNSPrefetch::PrefetchHigh(nsAString_internal&)

MXR Search *

Code Size: 3

nsresult nsHTMLDNSPrefetch::PrefetchHigh(Link*)

MXR Search *

Code Size: 3

nsresult nsHTMLDNSPrefetch::PrefetchMedium(nsAString_internal&)

MXR Search *

Code Size: 3

nsresult nsHTMLDNSPrefetch::PrefetchMedium(Link*)

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

content/media

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

MXR Search *

Code Size: 82

embedding/components/windowwatcher

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

Declaration Definition MXR Search

Code Size: 45, Static method

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

Declaration Definition MXR Search

Code Size: 10, Static method

modules/libpref

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

Definition MXR Search

Code Size: 47

gfx/thebes/public

Path info: MapCharToGlyph calls MapCharToGlyphFormat4

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

Declaration Definition MXR Search

Code Size: 92, Static method, class marked THEBES_API

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

Declaration Definition MXR Search

Code Size: 11, Static method, class marked THEBES_API

gfx/src/thebes

Path info: GetTextDimensions calls GetTextDimensionsInternal

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

MXR Search

Code Size: 56

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

MXR Search

Code Size: 2

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