Detect unused variables
    Namespace 
    rswhite4 at googlemail.com
       
    Thu May 10 14:33:31 PDT 2012
    
    
  
Ah, I see.
I wrote a short code that detects "normal" unused variables. 
"Normal" means those variables, which has built-in types.  This 
means, that no types created by the user/programmer will detect. 
Furthermore, it doesn't detect arrays yet, but maybe there are 
some people here, who would help me to complete it.
unused_vars.d: http://codepad.org/K5OCjlF3
unused_test.d: http://codepad.org/Bk9cXqD2
vertex.d: http://codepad.org/G1HH31Kx
Compile and run with: unused_vars <file>, e.g. unused_vars 
unused_test.d
At this point I would also like to ask if there is something that 
identifies unused imports?
    
    
More information about the Digitalmars-d-learn
mailing list