DEV Community

Suhana
Suhana

Posted on

In IntelliJ remove those classes which have 0 uses

In my project, I have too many classes which are not in usage at present. so I have to remove those classes with 0 usages(class should not be used in another class or any declaration). Do I have any shortcut to do as my project has 300+ classes

Top comments (1)

Collapse
 
hendrikras profile image
Hendrik Ras

Intelij color codes functions and classes that are not used. In my theme they become a bit grey'ish. That might help to decide if you wish to remove them. Never heard of shortcuts to remove unused code. though. Sorry.