Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Delete methods
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

drzoom
Ketchup Master

Switzerland
57 Posts

Posted - Nov 23 2006 :  08:19:29 AM  Show Profile  Reply with Quote
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

feline
Whole Tomato Software

United Kingdom
18755 Posts

Posted - Nov 23 2006 :  12:57:50 PM  Show Profile  Reply with Quote
Some form of "delete method" is being considered. I have added the idea of scanning the derived classes as well.

case=1101

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000