'Return a TOC nodetree -- for use on the same page only!'

def get_toc_for(self, docname, builder):

    warnings.warn('env.get_toc_for()    is    deprecated.    Use    sphinx.environment.adapters.toctre.TocTree    instead.', RemovedInSphinx20Warning)
    return TocTree(self).get_toc_for(docname, builder)
