From 3d0c2396ee757551d7588b2dc351ae3a0f1bc247 Mon Sep 17 00:00:00 2001 From: Matthias Bisping Date: Mon, 23 Jan 2023 12:05:01 +0100 Subject: [PATCH] Remove obsolete code --- test/fixtures/page_generation/page.py | 28 --------------------------- 1 file changed, 28 deletions(-) diff --git a/test/fixtures/page_generation/page.py b/test/fixtures/page_generation/page.py index f8b568a..f8c6922 100644 --- a/test/fixtures/page_generation/page.py +++ b/test/fixtures/page_generation/page.py @@ -641,34 +641,6 @@ def compute_scaled_coordinates(rectangle: Rectangle, factor: float) -> Tuple[int x2, y2 = x1 + scaled.width, y1 + scaled.height return x1, y1, x2, y2 - # return tuple( - # map( - # int, - # ( - # rectangle.x1 + factor * rectangle.width, - # rectangle.y1 + factor * rectangle.height, - # rectangle.x2 - factor * rectangle.width, - # rectangle.y2 - factor * rectangle.height, - # ), - # ) - # ) - - # x1, y1, x2, y2 = rectangle.coords - # width, height = rectangle.width, rectangle.height - # x1 += width * (1 - factor) / 2 - # y1 += height * (1 - factor) / 2 - # x2 -= width * (1 - factor) / 2 - # y2 -= height * (1 - factor) / 2 - # return int(x1), int(y1), int(x2), int(y2) - - # width = rectangle.width * (1 - factor) - # height = rectangle.height * (1 - factor) - # x1 = rectangle.x1 + (rectangle.width - width) // 2 - # y1 = rectangle.y1 + (rectangle.height - height) // 2 - # x2 = x1 + width - # y2 = y1 + height - # return tuple(lmap(int, (x1, y1, x2, y2))) - class RandomTable(RandomContentRectangle): def __init__(self, x1, y1, x2, y2, seed=None):