Let's say I add a control to a form and when I click on an event wxDevcpp generates a function header and shell in the h/cpp files. If I delete the control and no longer need the event handler, do I have to manually delete both or is there a way to delete any reference to the function and it's declaration?