Skip to content

Commit

Permalink
MAINT: drop unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
dnicolodi committed Sep 6, 2023
1 parent 6c720bb commit d838772
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions mesonpy/_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import functools
import importlib.resources
import os
import pathlib
import sys
import typing

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


# backport og pathlib.Path.is_relative_to
def is_relative_to(path: pathlib.Path, other: Union[pathlib.Path, str]) -> bool:
try:
path.relative_to(other)
except ValueError:
return False
return True


__all__ = [
'cached_property',
'is_relative_to',
'read_binary',
'Collection',
'Iterable',
Expand Down

0 comments on commit d838772

Please sign in to comment.