remove unused code

part of #843
hmm, indeed, it sets the resolver in the loader. Can you add a comment ?