Skip to content

Commit 05b6302

Browse files
committed
Undeprecate recommended console size method.
There are still rare use cases for this function. Such as filtering the result to be divisible by 2.
1 parent c5eaba1 commit 05b6302

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

CHANGELOG.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ Added
1414
Changed
1515
- Using `libtcod 1.16.0-alpha.15`.
1616

17-
Deprecated
18-
- `Context.recommended_console_size` has been replaced with
19-
`Context.new_console`.
20-
2117
11.17.0 - 2020-10-30
2218
--------------------
2319
Added

tcod/context.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,6 @@ def new_console(
302302
width, height = max(min_columns, size[0]), max(min_rows, size[1])
303303
return tcod.console.Console(width, height)
304304

305-
@deprecate("This method has been replaced by Context.new_console.")
306305
def recommended_console_size(
307306
self, min_columns: int = 1, min_rows: int = 1
308307
) -> Tuple[int, int]:
@@ -311,8 +310,8 @@ def recommended_console_size(
311310
312311
`min_columns`, `min_rows` are the lowest values which will be returned.
313312
314-
.. deprecated::
315-
This method has been replaced by :any:`Context.new_console`.
313+
If result is only used to create a new console then you may want to
314+
call :any:`Context.new_console` instead.
316315
"""
317316
with ffi.new("int[2]") as size:
318317
_check(

0 commit comments

Comments
 (0)