cubicweb/utils.py
changeset 12032 c16c1805e973
parent 11984 55f57038e553
child 12044 70bb46dfa87b
--- a/cubicweb/utils.py	Fri Mar 10 14:07:15 2017 +0100
+++ b/cubicweb/utils.py	Fri Mar 10 16:14:05 2017 +0100
@@ -37,7 +37,6 @@
 from logging import getLogger
 
 from six import text_type
-from six.moves.urllib.parse import urlparse
 
 from logilab.mtconverter import xml_escape
 from logilab.common.deprecation import deprecated
@@ -585,21 +584,6 @@
     return 'javascript: ' + PERCENT_IN_URLQUOTE_RE.sub(r'%25', javascript_code)
 
 
-def parse_repo_uri(uri):
-    """ transform a command line uri into a (protocol, hostport, appid), e.g:
-    <myapp>                      -> 'inmemory', None, '<myapp>'
-    inmemory://<myapp>           -> 'inmemory', None, '<myapp>'
-    """
-    parseduri = urlparse(uri)
-    scheme = parseduri.scheme
-    if scheme == '':
-        return ('inmemory', None, parseduri.path)
-    if scheme == 'inmemory':
-        return (scheme, None, parseduri.netloc)
-    raise NotImplementedError('URI protocol not implemented for `%s`' % uri)
-
-
-
 logger = getLogger('cubicweb.utils')
 
 class QueryCache(object):