summaryrefslogtreecommitdiff
path: root/src/home/config
diff options
context:
space:
mode:
Diffstat (limited to 'src/home/config')
-rw-r--r--src/home/config/__init__.py1
-rw-r--r--src/home/config/config.py16
2 files changed, 0 insertions, 17 deletions
diff --git a/src/home/config/__init__.py b/src/home/config/__init__.py
index 2b338d5..03b9f25 100644
--- a/src/home/config/__init__.py
+++ b/src/home/config/__init__.py
@@ -7,7 +7,6 @@ from .config import (
setup_logging,
app_config
)
-from .validators import validate
from ._configs import (
LinuxBoardsConfig,
ServicesListConfig
diff --git a/src/home/config/config.py b/src/home/config/config.py
index 5305039..e1a089d 100644
--- a/src/home/config/config.py
+++ b/src/home/config/config.py
@@ -9,7 +9,6 @@ from typing import Optional, Any, MutableMapping, Union
from argparse import ArgumentParser
from enum import Enum, auto
from os.path import join, isdir, isfile
-from . import validators
from ..util import parse_addr
@@ -19,21 +18,6 @@ class RootSchemaType(Enum):
LIST = auto()
-_my_validators = {}
-
-
-def _get_validator(name: str) -> Optional[callable]:
- if hasattr(validators, f'{name}_validator'):
- return getattr(validators, f'{name}_validator')
- if name in _my_validators:
- return _my_validators[name]
- return None
-
-
-def add_validator(name: str, f: callable):
- _my_validators[name] = f
-
-
class ConfigUnit:
NAME = 'dumb'