remove some code that has to do with unauth

I don't know what this code does, but it has something to do with
unauthenticated mode, and removing it doesn't break any tests.