I'm working with somebody else's code right now and ReSharper is giving me a lot of warnings about redundant code, such as:
- Unused directives
- Array creation expressions (
new string[]{xxx,xxx,xxx}
instead of{xxx,xxx,xxx}
) - Explicit delegate creation (
new EventHandler(xxx)
instead ofxxx
) - Qualifiers (
System.Windows.Forms.Form
instead ofForm
when directives are used)
There is a lot of code to work with, so I'm not sure if it's worth going through it all and removing all redundant code.
With that in mind, I wanted to ask if these are warnings that are only there to improve code style (for aesthetics) or do those pieces of code actually perform extra operations and impact performance a little?