httppeer: remove redundant code to fetch capabilities
ClosedPublic

Authored by indygreg on Mon, Feb 12, 10:48 PM.

Details

Summary

_fetchcaps() is called by httppeer.instance(), which is the only
instantiator of httppeer. Since _fetchcaps() always sets self._caps
and since 197d10e157ce removed the fallback for cases where the
remote doesn't support capabilities, we can remove some dead
code from httppeer.capabilities().

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
indygreg created this revision.Mon, Feb 12, 10:48 PM
lothiraldan accepted this revision.Tue, Feb 13, 3:58 AM
This revision was automatically updated to reflect the committed changes.