Hey Garry,
IDE is tracking code for designer deleted controls allowing you to return to code that should not exist anymore.
For example, place button on window 1, double click button add event pressed(), write some code in pressed() from the code window click the designer tab at the top to switch to designer, delete button, click code tab to switch from designer to code and it returns to the pressed() event of the button that no longer exists.