Open main menu

CDOT Wiki β

Changes

User:Egmetcalfe/Dead Code

1,139 bytes added, 14:35, 23 March 2010
no edit summary
Note: Code Size is a count of the number of GIMPLE instructions during pass cfg.
 
==Unconditionally Dead==
===content/base===
Code Size: 3, NS_HIDDEN_
 
====nsresult nsPlainTextSerializer::WillProcessTokens()====
 
[http://mxr.mozilla.org/mozilla-central/search?string=GetReferencedElement MXR Search] (forgot to include this in original patch)
 
Code Size: 2
=== content/html ===
Code Size: 19
 
====nsresult nsDetectionAdaptor::ProcessTokens()====
 
[http://mxr.mozilla.org/mozilla-central/search?string=ProcessTokens MXR Search]
 
Code Size: 2
 
====nsresult nsDetectionAdaptor::WillAddToken(CToken&)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=WillAddToken MXR Search]
 
Code Size: 2
 
== Bugs/Strangeness ==
 
===mozilla/layout/xul===
 
====void nsBox::CoordNeedsRecalc(PRInt32&)====
 
[http://mxr.mozilla.org/mozilla-central/search?string=CoordNeedsRecalc MXR Search]
 
Code Size: 2
 
This is declared in the header [http://mxr.mozilla.org/mozilla-central/source/layout/xul/base/src/nsBox.h#111 here] as taking an ncoord& parameter however it is defined [http://mxr.mozilla.org/mozilla-central/source/layout/xul/base/src/nsBox.cpp#412 here] as taking PRInt32&. This could be problematic if [NS_COORD_IS_FLOAT http://mxr.mozilla.org/mozilla-central/source/gfx/public/nsCoord.h#74] is defined.
1
edit