drzoom
Ketchup Master
Switzerland
57 Posts |
Posted - Nov 23 2006 : 08:19:29 AM
|
Preface: Most of the code I refactor is very complex and has many dependencies. After solving the dependencies I usual find out, that the code isn't referenced nor used anywhere. So I can delete all the complex self referencing methods.
Topic: There should be a refactoring action to delete a method with all implementations.
Your objections: - It's dangerous delete things, even the user has requested it. (Some story from the past when deleting code lead to an air plane crash... ;-) )
Bonus features to implement: - Sometimes I would delete the whole tree of methods from all subclasses...
- If I click the method in the class view, a menu entry "delete" would be helpful.
- A working undo entry.
- Removing trailing newlines behind the method implementation after deletion.
|
best regards Tobias
|
|