DEV Community

Discussion on: 𝗛𝗼𝘄 𝘁𝗼 𝗳𝗶𝗻𝗱 "UNUSED' 𝗝𝗔𝗩𝗔𝗦𝗖𝗥𝗜𝗣𝗧 𝗮𝗻𝗱 𝗖𝗦𝗦 𝗰𝗼𝗱𝗲 𝗼𝗻 𝘆𝗼𝘂𝗿 𝗽𝗮𝗴𝗲? 🤔

Collapse
badpractice profile image
Bad Practice

I've never used it before because I never needed to, but for those using JetBrains apps, you've probably seen this option before. It will sort/reorder on top of removing unused imports throughout the directory that you choose if not your entire project.

Collapse
varunprashar5 profile image
varunprashar5 Author

but its only for unused imports ..what about the same file where few methods are there even they are called based on events but on your page load they are not required to be there?
What if there is a style tag with some css and only few css is used and rest is just there present in the file as it is?