Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Feature: "Delete method..."

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
hajokirchhoff Posted - Nov 17 2011 : 04:38:32 AM
Hi there,
removing dead code is as important to me as writing new code. VisualAssist has a lot of great features such as Create declaration, Create implementation, Move implementation to source.

I miss "Delete Method" which would delete the body and the declaration. If I only delete the method body, I tend to forget to delete the declaration. Since this does not neccessarily cause a linker error, the declaration might stay in the code for quite some time, causing head scratching later on.

"Delete Method" should open the "Find references" Dialog showing all instances where this method is defined/declared/referenced. A button "Really delete this method" would then delete the declaration and the definition. Since "Delete Method" did an implicit "find references", I could jump to all references immediately afterwards (or even before I hit "really delete this method").

Many thanks

Hajo
3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Mar 30 2020 : 05:55:33 AM
This is still on our list of features to implement. The trick is checking that it is safe to delete something, and handling virtual methods, etc. So it's not quite as simple as it first seems, which is why it wasn't simply done before.
hajokirchhoff Posted - Mar 29 2020 : 12:02:14 PM
Hi VisualAssist Team,

Ha! I thought, I had a great new idea to suggest, only to find out I already suggested it 8 years ago.

I still would like to have a "Delete Method" feature. It's really great how easy it is to create new functions, override inherited functions etc...
But deleting a function would be great. Maybe nobody else is refactoring as much as I do, but I doubt it ;-)

Seriously, "Delete Method" or even "Delete Class" would be great. Perhaps combined with a "find symbol". When I refactor code, I remove calls of a function until only the function itself is left over. Find symbol is very helpful for it. Then, when only the function itself is left I delete the function.

Best regards (and stay healthy)
Hajo
feline Posted - Nov 17 2011 : 12:25:06 PM
This is a very sensible idea, and this is a feature we are looking to add to VA:

case=1101

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000