Remove all unused or unneeded code