Removes unneeded code