Remove unused func in auth