remove unused params

the exception isn't thrown either by this method