remove unused variant of ResolveContext.resolve static method

It was broken (ignored its restrictToChild parameter) but since
it was also unused, just nuked it.