42
42
//| """Create a Group of a given size and scale. Scale is in one dimension. For example, scale=2
43
43
//| leads to a layer's pixel being 2x2 pixels when in the group.
44
44
//|
45
- //| :param int max_size: The maximum group size .
45
+ //| :param int max_size: Ignored. Will be removed in 7.x .
46
46
//| :param int scale: Scale of layer pixels in one dimension.
47
47
//| :param int x: Initial x position within the parent.
48
48
//| :param int y: Initial y position within the parent."""
@@ -59,19 +59,14 @@ STATIC mp_obj_t displayio_group_make_new(const mp_obj_type_t *type, size_t n_arg
59
59
mp_arg_val_t args [MP_ARRAY_SIZE (allowed_args )];
60
60
mp_arg_parse_all (n_args , pos_args , kw_args , MP_ARRAY_SIZE (allowed_args ), allowed_args , args );
61
61
62
- mp_int_t max_size = args [ARG_max_size ].u_int ;
63
- if (max_size < 1 ) {
64
- mp_raise_ValueError_varg (translate ("%q must be >= 1" ), MP_QSTR_max_size );
65
- }
66
-
67
62
mp_int_t scale = args [ARG_scale ].u_int ;
68
63
if (scale < 1 ) {
69
64
mp_raise_ValueError_varg (translate ("%q must be >= 1" ), MP_QSTR_scale );
70
65
}
71
66
72
67
displayio_group_t * self = m_new_obj (displayio_group_t );
73
68
self -> base .type = & displayio_group_type ;
74
- common_hal_displayio_group_construct (self , max_size , scale , args [ARG_x ].u_int , args [ARG_y ].u_int );
69
+ common_hal_displayio_group_construct (self , scale , args [ARG_x ].u_int , args [ARG_y ].u_int );
75
70
76
71
return MP_OBJ_FROM_PTR (self );
77
72
}
0 commit comments