Don't bother unrooting. If you're selling it off, the new user will never know, and it will never harm them. You haven't changed the software, which is what is important.
Before you sell it, you will do a full factory wipe, which will boost the speed of your phone anyway. It will give the new user a brand new phone.