remove method

This commit is contained in:
Will McGugan
2022-07-04 21:01:11 +01:00
parent 415db09a4b
commit d7f463f3eb

View File

@@ -459,11 +459,6 @@ class Region(NamedTuple):
height + expand_height * 2, height + expand_height * 2,
) )
def enlarge(self, size: tuple[int, int]) -> Region:
add_width, add_height = size
x, y, width, height = self
return Region(x, y, width + add_width, height + add_height)
@lru_cache(maxsize=1024) @lru_cache(maxsize=1024)
def overlaps(self, other: Region) -> bool: def overlaps(self, other: Region) -> bool:
"""Check if another region overlaps this region. """Check if another region overlaps this region.