开发者

I can't delete a method using eclipse refactoring?

开发者 https://www.devze.com 2023-02-04 16:51 出处:网络
I have a method which I want to delete. This method is being called from n number of classes. I want to dele开发者_开发技巧te this method using refactoring and also make eclipse delete all calls to th

I have a method which I want to delete. This method is being called from n number of classes. I want to dele开发者_开发技巧te this method using refactoring and also make eclipse delete all calls to this method rather than go and clean up in each file. I could not find a straight way to do this from refactor (I am using ganymede)


  1. Delete the method body
  2. Then select the method
  3. Refactor -> Inline


I don't think it can be done through refactoring. You can do a Search and replace using regex though.

CTRL-H to bring up the search replace dialog

0

精彩评论

暂无评论...
验证码 换一张
取 消