Removes unneccessary code that was just being used for a test which
wasn't testing anything useful.