Skip to content

Commit

Permalink
remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
Reflejo committed Dec 6, 2024
1 parent 46c51d9 commit 5df76e9
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions tools/check-release.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import subprocess

from pathlib import Path
from typing import Dict, Optional, Generator, Tuple
from typing import Dict, Generator, Tuple

SCRIPT_DIR = Path(__file__).resolve().parent
REPOS_PATH = SCRIPT_DIR / Path("../..")
Expand Down Expand Up @@ -60,14 +60,6 @@ def check_ancestor(module: str, sha_at_version: str, sha_to_check: str) -> bool:
return code == 0


def tag_for_version(version: str) -> Optional[str]:
# Normalizes the given version and returns the tag if it exists
tag = version if version.startswith('v') else f'v{version}'
code = subprocess.call(
['git', 'rev-list', '-n', '1', tag], stderr=subprocess.DEVNULL, stdout=subprocess.DEVNULL)
return tag if code == 0 else None


def main() -> None:
parser = argparse.ArgumentParser(
description='Check if a sha in a submodule is included in a release.')
Expand Down

0 comments on commit 5df76e9

Please sign in to comment.