Changes

Jump to: navigation, search

User:Egmetcalfe/Dead Code

169 bytes added, 21:53, 1 April 2010
accessible
[http://mxr.mozilla.org/mozilla-central/search?string=GetElementsHavingIDRefsAttrImpl MXR Search]
Code Size: 42, ^
====void nsCoreUtils::GetElementsHavingIDRefsAttr(nsIContent*,nsIContent*,nsIAtom*,nsIArray**)====
[http://mxr.mozilla.org/mozilla-central/search?string=GetElementsHavingIDRefsAttr MXR Search]
Code Size: 0? [http://mxr.mozilla.org/mozilla-central/source/accessible/src/base/nsCoreUtils.cpp#879 Really?], ^
====nsresult nsRelUtils::AddTargetFromChildrenHavingIDRefsAttr(PRUint32,nsIAccessibleRelation**,nsIContent*,nsIContent*,nsIAtom*)====
[http://mxr.mozilla.org/mozilla-central/search?string=AddTargetFromChildrenHavingIDRefsAttr MXR Search]
Code Size: 52, ^
====already_AddRefed nsAccUtils::QueryAccessibleTable(nsIAccessibleTable*)====
[http://mxr.mozilla.org/mozilla-central/search?string=QueryAccessibleTable MXR Search]
Code Size: 7, ^
====already_AddRefed nsCoreUtils::GetLastSensibleColumn(nsITreeBoxObject*)====
[http://mxr.mozilla.org/mozilla-central/search?string=GetLastSensibleColumn MXR Search]
Code Size: 40, ^
====PRBool nsFontSizeTextAttr::GetValueFor(nsIDOMElement*,nscoord*)====
Note: A number of calls to GetValueFor functions are made where the second parameter has generic type ie T blah.
 
**** Bah: nothing can be done here - template base classes are no fun
Path info: GetValue calls nsCSSTextAttr::Format
====PRBool nsTextAttr::GetValue(nsAString_internal&,int)====
To verify run [http://mxr.mozilla.org/mozilla-central/search?string=GetLastSensibleColumn GetValue this search] then grep for all lines that contain at least two commas
Code Size: 26
Note: Must also remove from nsITextAttrBloody hell, the second param is really PRBool (it's not dead)
These are too difficult too verify:
Code Size: 7
 
Argh: the first parameter is a template param in the abstract base class
=== embedding/components/windowwatcher ===
1
edit

Navigation menu