Remove obsolete code
This commit is contained in:
parent
f8c2d691b2
commit
3d0c2396ee
28
test/fixtures/page_generation/page.py
vendored
28
test/fixtures/page_generation/page.py
vendored
@ -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):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user