Performance/Remove Unused Locals
I know what this means, I think, as I have found code where a variable is declared and never used, so I remove it. However, I see this one in FxCop all the time too:
Warning, Certainty 95, for "RemoveUnusedLocals"
{
Target : "SaveData():System.Boolean" (IntrospectionTargetMethodBase)
Id : "_Vb_t_i4_0" (String)
Location : "file:///C:/Projects/AM.NET/CDS%20Forms/General/UIBase.vb<1075>" (String)
Resolution : "UIBase.SaveData():Boolean declares a local, '_Vb_t_i4_0',
of type CustomDataSystems.AMNET.Forms.General.UIBase+FileMaintenanceModuleName,
which is never used or is only assigned to. Use this
local or remove it."
Help : "http://www.gotdotnet.com/team/fxcop/docs/rules.aspx?version=1.312&&url=/Performance/RemoveUnusedLocals.html" (String)
Category : "Microsoft.Performance" (String)
CheckId : "CA1804" (String)
RuleFile : "Performance Rules" (String)
Info : "Remove locals that are not used or are only assigned
to in method implementations."
Created : "4/6/2005 4:25:13 PM" (DateTime)
LastSeen : "4/6/2005 4:25:13 PM" (DateTime)
Status : Active(MessageStatus)
Fix Category : NonBreaking(FixCategories)
}
What does "declares a local, '_Vb_t_i4_0'" mean anyway?