Skip to content

Commit d90be1e

Browse files
authored
Merge pull request #1321 from JohnVillalovos/jlvillal/remove_cruft
chore: remove unused function _construct_url()
2 parents a18bc5c + 009d369 commit d90be1e

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

gitlab/client.py

-18
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)