Best Practices for Removing Unused Code

后端 未结 8 1224
花落未央
花落未央 2021-02-07 17:56

I\'d like to know what people\'s best practices are for removing unused code. Personally I\'m a fan of deleting (not just commenting) anything that\'s not currently being used.

相关标签:
8条回答
  • 2021-02-07 18:48

    We have an "Obsolete" area in our source tree where we move stuff that is no longer used. It is away from the trunk in an area that isn't normally checked out, so nobody has to look at it.

    0 讨论(0)
  • 2021-02-07 18:51

    I usually let dead code idle for a while until its use has stabilized & I won't be using that functionality anymore. At that point, I remove it.

    0 讨论(0)
提交回复
热议问题