summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2021-02-23 19:53:04 +0100
committerGitHub <noreply@github.com>2021-02-23 19:53:04 +0100
commitd90be1e6ed5b27e02e00cffec25317bef413fec4 (patch)
tree4578b4ebc8718ef962083695ba356f91ec2cefc3
parenta18bc5c525b686af5f28216d2f1da95942b63f61 (diff)
parent009d369f08e46d1e059b98634ff8fe901357002d (diff)
downloadgitlab-d90be1e6ed5b27e02e00cffec25317bef413fec4.tar.gz
Merge pull request #1321 from JohnVillalovos/jlvillal/remove_cruft
chore: remove unused function _construct_url()
-rw-r--r--gitlab/client.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/gitlab/client.py b/gitlab/client.py
index 910926a..7f4d4a8 100644
--- a/gitlab/client.py
+++ b/gitlab/client.py
@@ -318,24 +318,6 @@ class Gitlab(object):
data = {"license": license}
return self.http_post("/license", post_data=data, **kwargs)
- def _construct_url(self, id_, obj, parameters, action=None):
- if "next_url" in parameters:
- return parameters["next_url"]
- args = utils.sanitize_parameters(parameters)
-
- url_attr = "_url"
- if action is not None:
- attr = "_%s_url" % action
- if hasattr(obj, attr):
- url_attr = attr
- obj_url = getattr(obj, url_attr)
- url = obj_url % args
-
- if id_ is not None:
- return "%s/%s" % (url, str(id_))
- else:
- return url
-
def _set_auth_info(self):
tokens = [
token