Skip to content

Commit d838772

Browse files
committed
MAINT: drop unused code
1 parent 6c720bb commit d838772

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

mesonpy/_compat.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import functools
1010
import importlib.resources
1111
import os
12-
import pathlib
1312
import sys
1413
import typing
1514

@@ -44,18 +43,8 @@ def read_binary(package: str, resource: str) -> bytes:
4443
Path = Union[str, os.PathLike]
4544

4645

47-
# backport og pathlib.Path.is_relative_to
48-
def is_relative_to(path: pathlib.Path, other: Union[pathlib.Path, str]) -> bool:
49-
try:
50-
path.relative_to(other)
51-
except ValueError:
52-
return False
53-
return True
54-
55-
5646
__all__ = [
5747
'cached_property',
58-
'is_relative_to',
5948
'read_binary',
6049
'Collection',
6150
'Iterable',

0 commit comments

Comments
 (0)