From 386917c9f07953923fcdaf20db1e3d8ce6a8f5f1 Mon Sep 17 00:00:00 2001 From: Dusk-92 Date: Thu, 3 Sep 2026 21:30:07 +0200 Subject: [PATCH] Remove unused MPQ cache helper --- remote_packages.py | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/remote_packages.py b/remote_packages.py index 8b6dc73..481e740 100644 --- a/remote_packages.py +++ b/remote_packages.py @@ -407,42 +407,6 @@ def _load_cached_file(target_dir, package_id, filename=None, expected_revision=N return cached_path, metadata -def _seed_cached_file_from_installed( - target_dir, - package_id, - source_path, - filename, - revision=None, - validator=None, -): - """Best-effort cache seeding from an already validated installed file.""" - cached = _load_cached_file( - target_dir, - package_id, - filename, - expected_revision=revision, - ) - if cached is not None: - return True - - try: - if callable(validator): - validator(source_path) - except Exception: - return False - - return ( - _store_cached_file_safely( - target_dir, - package_id, - source_path, - filename, - revision=revision, - ) - is not None - ) - - def _current_recorded_package_revision(target_dir, package_id): data = _load_package_state(target_dir, package_id) revision = data.get("revision") if isinstance(data, dict) else None