Skip to content

Commit 009d369

Browse files
chore: remove unused function _construct_url()
The function _construct_url() was used by the v3 API. All usage of the function was removed in commit fe89b94
1 parent a18bc5c commit 009d369

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

gitlab/client.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -318,24 +318,6 @@ def set_license(self, license, **kwargs):
318318
data = {"license": license}
319319
return self.http_post("/license", post_data=data, **kwargs)
320320

321-
def _construct_url(self, id_, obj, parameters, action=None):
322-
if "next_url" in parameters:
323-
return parameters["next_url"]
324-
args = utils.sanitize_parameters(parameters)
325-
326-
url_attr = "_url"
327-
if action is not None:
328-
attr = "_%s_url" % action
329-
if hasattr(obj, attr):
330-
url_attr = attr
331-
obj_url = getattr(obj, url_attr)
332-
url = obj_url % args
333-
334-
if id_ is not None:
335-
return "%s/%s" % (url, str(id_))
336-
else:
337-
return url
338-
339321
def _set_auth_info(self):
340322
tokens = [
341323
token

0 commit comments

Comments
 (0)