If a local cursor is declared but not used, it is dead code and should be removed. Doing so will improve maintainability because developers will not wonder what the cursor is used for.