This is a feature I know from Delphi ...
If you have defined an event-routine and this routine is empty (no code), then it is automatically removed during the compilation. This is very helpful to avoid empty routines all over your sources (f.e. an accidentially click on a button creates a new routine and to remove this routine you have to clean on two different places [the routine itself and in the designer-code]).