diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2026-07-05 10:17:34 +0300 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2026-07-05 10:17:34 +0300 |
| commit | a578ef33d9ed4af19e54c8604e5c8b10ca399a14 (patch) | |
| tree | d1f11794ad2b2b8a1bb3aeada6c2627b492e2c0e | |
| parent | a7d854250c12bc75eaebc3625a3e42c3047f8b60 (diff) | |
| download | fungus-launcher-a578ef33d9ed4af19e54c8604e5c8b10ca399a14.tar.gz fungus-launcher-a578ef33d9ed4af19e54c8604e5c8b10ca399a14.tar.xz | |
remove dead code
| -rw-r--r-- | fungus/game_model.py | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/fungus/game_model.py b/fungus/game_model.py index 3930811..2f114bc 100644 --- a/fungus/game_model.py +++ b/fungus/game_model.py @@ -5,8 +5,6 @@ import json import os import tempfile from dataclasses import dataclass, field -from typing import TYPE_CHECKING - # ── Game data model ───────────────────────────────────────────────────── @@ -192,17 +190,12 @@ class GameLibrary: Returns a list of ``Game`` objects. If the same ``gameid`` appears in multiple files, the first occurrence wins and a warning is logged. """ - if TYPE_CHECKING: + try: from fungus.logger import get_logger log = get_logger(__name__) - else: - try: - from fungus.logger import get_logger - - log = get_logger(__name__) - except ImportError: - log = None # type: ignore[assignment] + except ImportError: + log = None # type: ignore[assignment] games: list[Game] = [] seen: dict[str, str] = {} # gameid -> filename |
