Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to check for non used variables in Xcode 4

I am wondering if there is an option in xcode that will let you debug a variable to see if it's being used in your code anywhere?

I find sometimes I make changes to my code, then I look at all of my synthesised variables and I'm just not positive that they are being used.. I don't mind going through my code and checking but I thought it would be more productive if their was a function that would help me do this quicker?

Dose anyone know of such a thing?

like image 458
C.Johns Avatar asked Dec 03 '25 19:12

C.Johns


1 Answers

You can set the Unused parameter warnings in the Build Settings of your project. Just search "Unused" when looking for the option.

like image 91
codelol Avatar answered Dec 06 '25 08:12

codelol