Code Issues – Redundant namespace reference
June 30th, 2011
Cause:
The Redundant namespace reference code issue highlights unused namespace references that can be safely removed in gray (dead code issue), which may improve readability.
Sample:
How to fix:
- Apply the Optimize Namespace References refactoring:
Options of the refactoring are also used for the Redundant namespace reference code issue. For example, you can specify a list of references that won’t have an influence on the code issue. In other words, if you specify a reference that should be kept (and that is actually unused) and there are no more unused references in the file – a code issue won’t be shown.
—– Products: CodeRush Pro Versions: 12.1 and up VS IDEs: any Updated: Nov/12/2012 ID: C110