Remove an unused Subversion method that expects dependency links

This commit is contained in:
Pradyun Gedam 2018-12-02 17:27:34 +05:30
parent 838984b372
commit 71b6e95322
No known key found for this signature in database
GPG Key ID: DA17C4B29CB32E4B
1 changed files with 0 additions and 16 deletions

View File

@ -4,7 +4,6 @@ import logging
import os
import re
from pip._internal.models.link import Link
from pip._internal.utils.logging import indent_log
from pip._internal.utils.misc import (
display_path, make_vcs_requirement_url, rmtree, split_auth_from_netloc,
@ -61,21 +60,6 @@ class Subversion(VersionControl):
cmd_args = ['update'] + rev_options.to_args() + [dest]
self.run_command(cmd_args)
# TODO: Remove
def get_location(self, dist, dependency_links):
for url in dependency_links:
egg_fragment = Link(url).egg_fragment
if not egg_fragment:
continue
if '-' in egg_fragment:
# FIXME: will this work when a package has - in the name?
key = '-'.join(egg_fragment.split('-')[:-1]).lower()
else:
key = egg_fragment
if key == dist.key:
return url.split('#', 1)[0]
return None
def get_revision(self, location):
"""
Return the maximum revision for all files under a given location