LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
nathand

Automatically delete wires that are not connected at either end

Status: New

Perhaps this has already been suggested somewhere but I couldn't find it.  Wires that are disconnected at both ends should be automatically removed without requiring the user to delete them.  Wires should be treated like tunnels in this respect.  When the last wire connected to a tunnel is removed, the tunnel disappears too; why can't wires also disappear when the last terminal to which they connect is removed?

4 Comments
X.
Trusted Enthusiast
Trusted Enthusiast

I tend to agree, but some may argue that this lone wire could warn you about an irreversible mistake you are about to make... In this case, a Ctrl-B doesn't cost much... and can be undone!

Also, if you use the Ctrl-Space Ctrl-R "Remove" shortcut, this kind of cleanup is usually done satisactorily (there are still some glitches but they are supposed to be ironed out in 2013).

fabric
Active Participant
Ctrl-B is often a bit extreme for me! If I am refactoring then there may be other broken wires that I intend to reconnect... But any wires that are disconnected at both ends are almost certainly junk. I'd prefer that they are automatically removed for me, perhaps with the option to undo the removal.
X.
Trusted Enthusiast
Trusted Enthusiast

Of course, when you use Ctrl-B, you first select a region of interest...

nathand
Proven Zealot

I think it's unlikely a lone wire will remind you about a coding error.  Have you ever made an error that you would have avoided if only a blank tunnel had remained on the edge of a case structure?  Again, the wire should follow its connections - if the last terminal is deleted, remove the wire, and if you undo deleting the terminal, bring back the wire too.  Wires should act like tunnels since they're pretty much the same thing.