From 9a25efc1267632b02ac2420ef20c98260c77560b Mon Sep 17 00:00:00 2001 From: fauxpark Date: Sat, 23 Nov 2024 13:53:50 +1100 Subject: [PATCH] Remove pointless unused width & height calculation --- lib/python/qmk/cli/new/keyboard.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/python/qmk/cli/new/keyboard.py b/lib/python/qmk/cli/new/keyboard.py index eb908fde243..e92f52a9122 100644 --- a/lib/python/qmk/cli/new/keyboard.py +++ b/lib/python/qmk/cli/new/keyboard.py @@ -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))