Skip to main content

Unused variables

Reports assignments to variables that are never used before the variable goes out of scope.

The presence of unused variables may indicate significant logic errors. To prevent such errors, unused values should be identified and removed from code.

Unused local variables and unnecessary assignments increase the size of an assembly and decrease performance.

The solution involves removing the variable from the microflow, which could mean deleting the activity or electing to not use the return value of an activity.