Hello,
I suppose, the Touch Handler is taken in account because of existing references to it. These can be found e.g. in a Push Button, or any other interactive widget. If there is no reference to a Touch Handler (or more generally to a project member), the project member is eliminated and no code is generated for it.
If you are using the regular Widgets, it is not possible to remove the Touch Handler without deeply redesigning the widgets. However, the widgets use only the Simple Touch Handler. In your question you have mentioned the Slide Touch Handler. This indicates that the handler is found somewhere in your own project implementation. Search your project for SlideTouchHandler.
... appeared in Embedded Wizard Code Generation Report,which cost about 13KB and we are running out of ROM.
Please note, that the values in Generation Report are roughly estimated without taking in account the C compiler optimization. I would recommend to check the MAP file resulting from the linker how much ROM do the handler really occupy. I suppose it is less than 13 kb. Especially the Simple Touch Handler found in Widgets is very simple and lightweight. The Slide Touch Handler is more complex, but it does not belong to widgets, so I hope you can find where the Slide Touch Handler is used in your project and remove it.
I hope it helps you further.
Best regards
Paul Banach