Skip to content

Commit 45fd6dd

Browse files
Remove the max_size parameter from displayio.Group
max_size has been ignored for a while with the intention of removing it in 7.0
1 parent 10645bf commit 45fd6dd

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

shared-bindings/displayio/Group.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,18 @@
3838
//| class Group:
3939
//| """Manage a group of sprites and groups and how they are inter-related."""
4040
//|
41-
//| def __init__(self, *, max_size: int = 4, scale: int = 1, x: int = 0, y: int = 0) -> None:
41+
//| def __init__(self, *, scale: int = 1, x: int = 0, y: int = 0) -> None:
4242
//| """Create a Group of a given size and scale. Scale is in one dimension. For example, scale=2
4343
//| leads to a layer's pixel being 2x2 pixels when in the group.
4444
//|
45-
//| :param int max_size: Ignored. Will be removed in 7.x.
4645
//| :param int scale: Scale of layer pixels in one dimension.
4746
//| :param int x: Initial x position within the parent.
4847
//| :param int y: Initial y position within the parent."""
4948
//| ...
5049
//|
5150
STATIC mp_obj_t displayio_group_make_new(const mp_obj_type_t *type, size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {
52-
enum { ARG_max_size, ARG_scale, ARG_x, ARG_y };
51+
enum { ARG_scale, ARG_x, ARG_y };
5352
static const mp_arg_t allowed_args[] = {
54-
{ MP_QSTR_max_size, MP_ARG_INT | MP_ARG_KW_ONLY, {.u_int = 4} },
5553
{ MP_QSTR_scale, MP_ARG_INT | MP_ARG_KW_ONLY, {.u_int = 1} },
5654
{ MP_QSTR_x, MP_ARG_INT | MP_ARG_KW_ONLY, {.u_int = 0} },
5755
{ MP_QSTR_y, MP_ARG_INT | MP_ARG_KW_ONLY, {.u_int = 0} },

0 commit comments

Comments
 (0)