Skip to content

Commit

Permalink
cleanup: purge dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
ccwienk committed Dec 9, 2024
1 parent d088590 commit c067aa9
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions github/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import enum
import io
import re
import sys

import typing
from typing import Iterable, Tuple
Expand Down Expand Up @@ -788,32 +787,6 @@ def branches(
return list(map(lambda r: r.name, repo.branches()))


def retrieve_email_addresses(
github_cfg: GithubConfig,
github_users: typing.Sequence[str] | typing.Collection[str],
out_file: str=None
):
github = ccc.github.github_api(github_cfg=github_cfg)

def retrieve_email(username: str):
user = github.user(username)
return user.email

fh = open(out_file, 'w') if out_file else sys.stdout

email_addresses_count = 0

for email_address in filter(None, map(retrieve_email, github_users)):
fh.write(email_address + '\n')
email_addresses_count += 1

ci.util.verbose('retrieved {sc} email address(es) from {uc} user(s)'.format(
sc=email_addresses_count,
uc=len(github_users)
)
)


def _retrieve_team_by_name_or_none(
organization: github3.orgs.Organization,
team_name: str
Expand Down

0 comments on commit c067aa9

Please sign in to comment.