For each app I write, at the end of the project, despite walking through the code, I’m sure I’ve left in unused “stuff”. Is there a good methodology to check whether variables and/or properties are unused?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Actually, Xcode4 already locates unused variables while editing.
Then there is the static Analyzer that comes for free with Xcode.
Just use it by running it via Product->Analyze
This will, among many other useful things locate and mark unused variable assignments.