Skip to content

Commit ef3ab86

Browse files
authored
Cleanup dependencies validation (#799)
* chore: remove unused function * style: remove unused import * style: remove unused variables
1 parent d7b827f commit ef3ab86

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/xpk/utils/validation.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@
1515
"""
1616

1717
from ..core.commands import run_command_for_value
18-
from ..core.config import __version__ as xpk_version
1918
from .console import xpk_exit, xpk_print
20-
from ..commands.config import xpk_cfg
21-
from ..core.config import DEPENDENCIES_KEY
2219
from enum import Enum
2320
from dataclasses import dataclass
2421

@@ -80,14 +77,6 @@ def should_validate_dependencies(args):
8077
return not skip_validation and not dry_run
8178

8279

83-
def validate_dependencies():
84-
"""Validates all system dependencies if validation has not been done with current XPK version."""
85-
deps_version = xpk_cfg.get(DEPENDENCIES_KEY)
86-
if deps_version is None or deps_version != xpk_version:
87-
validate_dependencies_list(list(SystemDependency))
88-
xpk_cfg.set(DEPENDENCIES_KEY, xpk_version)
89-
90-
9180
def validate_dependencies_list(dependencies: list[SystemDependency]):
9281
"""Validates a list of system dependencies and returns none or exits with error."""
9382
for dependency in dependencies:

0 commit comments

Comments
 (0)