mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-23 11:52:59 +00:00
Remove pointless unused width & height calculation
This commit is contained in:
parent
d7bb731c34
commit
9a25efc126
@ -91,12 +91,6 @@ def augment_community_info(config, src, dest):
|
||||
# avoid assumptions on macro name by using the first available
|
||||
first_layout = next(iter(info["layouts"].values()))["layout"]
|
||||
|
||||
# guess at width and height now its optional
|
||||
width, height = (0, 0)
|
||||
for item in first_layout:
|
||||
width = max(width, int(item["x"]) + 1)
|
||||
height = max(height, int(item["y"]) + 1)
|
||||
|
||||
matrix_type = prompt_matrix_type()
|
||||
(rows, cols) = prompt_matrix_size(len(first_layout))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user