Skip to content

Commit d1baa64

Browse files
committed
no longer required
1 parent d3c5e78 commit d1baa64

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/textual/geometry.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -228,26 +228,6 @@ def line_range(self) -> range:
228228
"""A range object that covers values between 0 and `height`."""
229229
return range(self.height)
230230

231-
def apply_extrema(
232-
self,
233-
min_width: int | None,
234-
max_width: int | None,
235-
min_height: int | None,
236-
max_height: int | None,
237-
) -> Size:
238-
width = self.width
239-
height = self.height
240-
if min_width is not None:
241-
width = max(width, min_width)
242-
if max_width is not None:
243-
width = min(width, max_width)
244-
if min_height is not None:
245-
height = max(height, min_height)
246-
if max_height is not None:
247-
height = max(height, max_height)
248-
# print(self, min_width, max_width, min_height, max_height, (width, height))
249-
return Size(width, height)
250-
251231
def with_width(self, width: int) -> Size:
252232
"""Get a new Size with just the width changed.
253233

0 commit comments

Comments
 (0)