fix: remove forgotten unused code

This commit is contained in:
Karim shoair
2025-12-28 00:14:47 +02:00
parent 1b838eabd0
commit 9bfe744840
4 changed files with 2 additions and 34 deletions
@@ -13,7 +13,6 @@ from scrapling.core._types import (
Tuple,
Optional,
Callable,
Iterable,
Sequence,
overload,
SetCookieParam,
@@ -37,15 +36,6 @@ def _is_invalid_file_path(value: str) -> bool | str: # pragma: no cover
return False
def _validate_addon_path(value: str) -> None: # pragma: no cover
"""Fast addon path validation"""
path = Path(value)
if not path.exists():
raise FileNotFoundError(f"Addon path not found: {value}")
if not path.is_dir():
raise ValueError(f"Addon path must be a directory of the extracted addon: {value}")
@lru_cache(2)
def _is_invalid_cdp_url(cdp_url: str) -> bool | str:
"""Fast CDP URL validation"""