Be very careful when deleting code.

It is better to rem out bits of code using <!--...--> or // as appropriate.

And always make backups and document (however tedious) what you do, otherwise you could end up in all manner of strife.