You must be registered to post a reply. Click here to register.
T O P I C R E V I E W
drzoom
Posted - Nov 23 2006 : 08:19:29 AMPreface: 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.
1 L A T E S T R E P L I E S (Newest First)
feline
Posted - Nov 23 2006 : 12:57:50 PM Some form of "delete method" is being considered. I have added the idea of scanning the derived classes as well.