diff --git a/CHANGELOG.md b/CHANGELOG.md index 0da8bf2..3bf335d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Cleanup the `README.md` a bit +### Deprecated + +- Deprecate `File.getName` + - The method itself doesn't make sense, instead operate on `File.filepath` directly +- Deprecate `MapFile.debugging` +- Deprecate `progress` frontend's `--debugging` flag + ## [2.1.4] - 2023-09-11 ### Fixed diff --git a/src/mapfile_parser/mapfile.py b/src/mapfile_parser/mapfile.py index c0a3b22..bea447d 100644 --- a/src/mapfile_parser/mapfile.py +++ b/src/mapfile_parser/mapfile.py @@ -165,6 +165,7 @@ def serializeVrom(self, humanReadable: bool=True) -> str|int|None: return self.vrom + #! @deprecated def getName(self) -> Path: return Path(*self.filepath.with_suffix("").parts[2:]) @@ -445,6 +446,8 @@ def __hash__(self): class MapFile: def __init__(self): self._segmentsList: list[Segment] = list() + + #! @deprecated self.debugging: bool = False def readMapFile(self, mapPath: Path):