From 177f600ae0b5d9cb656bc315bba367ec3c10325a Mon Sep 17 00:00:00 2001 From: Christian Cwienk Date: Fri, 6 Dec 2024 15:57:21 +0100 Subject: [PATCH] cleanup: purge dead code --- github/util.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/github/util.py b/github/util.py index ec80c0e66..40e2a54c7 100644 --- a/github/util.py +++ b/github/util.py @@ -5,7 +5,6 @@ import collections import datetime -import deprecated import enum import io import re @@ -798,20 +797,6 @@ def delete_outdated_draft_releases(self) -> Iterable[Tuple[github3.repos.release yield release, release.delete() -@deprecated.deprecated -def github_cfg_for_hostname(cfg_factory, host_name, require_labels=('ci',)): # XXX unhardcode label - return ccc.github.github_cfg_for_hostname( - host_name=host_name, - cfg_factory=cfg_factory, - require_labels=require_labels, - ) - - -@deprecated.deprecated -def _create_github_api_object(github_cfg): - return ccc.github.github_api(github_cfg=github_cfg) - - def branches( github_cfg, repo_owner: str,