Code Issues – Unused type parameter
February 14th, 2011
Cause:
This code issue of a dead code type shows type parameters to a generic type, or method definitions that are not referenced within its scope, and can be removed. In a generic type or method definition, a type parameter is a placeholder for a specific type that a client specifies when they instantiate a variable of the generic type. Removing the unused type parameter may improve readability.
Sample:
How to fix:
- Remove the unused type parameters: