There are utilities that remove old kernels. Computer Janitor can do it as
can Ubuntu Tweak from Getdeb.net. You can also remove them with Synaptic.
When you remove the old kernels it removes the lines from grub for you. If
you only edit grub then you still have the kernels installed.