Can't I delete a method using eclipse refactoring?

I have a method that I want to delete. This method is called from n number of classes. I want to remove this method using refactoring, and also force eclipse to delete all calls to this method, and not go and clear in every file. I could not find a direct way to do this from refactoring (I use ganymede)

+6
eclipse refactoring
source share
2 answers
  • Delete method body
  • Then select a method
  • Refactor -> Inline
+23
source share

I do not think that this can be done using refactoring. However, you can search and replace using a regular expression.

CTRL-H to invoke the search replace dialog

0
source share

All Articles