Removes left-over code which isn't used anymore.