From 2962fae92ae73ce38940a40519c53631d956469b Mon Sep 17 00:00:00 2001 From: antazoey Date: Wed, 11 Dec 2024 03:24:17 +0700 Subject: [PATCH] refactor!: remove `is_relative_to()` (unused) util method (#2406) --- src/ape/utils/os.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/ape/utils/os.py b/src/ape/utils/os.py index bc6e3f37dd..bfb9fac88f 100644 --- a/src/ape/utils/os.py +++ b/src/ape/utils/os.py @@ -13,22 +13,6 @@ from typing import Any, Optional, Union -# TODO: This method is no longer needed since the dropping of 3.9 -# Delete in Ape 0.9 release. -def is_relative_to(path: Path, target: Path) -> bool: - """ - Search a path and determine its relevancy. - - Args: - path (str): Path represents a filesystem to find. - target (str): Path represents a filesystem to match. - - Returns: - bool: ``True`` if the path is relative to the target path or ``False``. - """ - return target.is_relative_to(path) - - def get_relative_path(target: Path, anchor: Path) -> Path: """ Compute the relative path of ``target`` relative to ``anchor``,