Remove unused code
This commit is contained in:
parent
7b2f921472
commit
160d5b3473
11
test/fixtures/page_generation/page.py
vendored
11
test/fixtures/page_generation/page.py
vendored
@ -879,17 +879,6 @@ def generate_text_block(rectangle: Rectangle, text) -> ContentRectangle:
|
||||
return block
|
||||
|
||||
|
||||
class RandomPageNumber(TextBlock):
|
||||
def __init__(self, x1, y1, x2, y2):
|
||||
super().__init__(x1, y1, x2, y2)
|
||||
self.page_number = random.randint(1, 1000)
|
||||
self.margin_distance_percentage = 0.05
|
||||
self.margin_distance_x = int(self.width * self.margin_distance_percentage)
|
||||
self.margin_distance_y = int(self.height * self.margin_distance_percentage)
|
||||
|
||||
self.location_coordinates = self.location_to_coordinates(self.pick_location())
|
||||
|
||||
|
||||
def paste_content(page, content_box: ContentRectangle):
|
||||
assert content_box.content.mode == "RGBA"
|
||||
page.paste(content_box.content, (content_box.x1, content_box.y1), content_box.content)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user