Remove unused code

This commit is contained in:
Matthias Bisping 2023-02-01 17:29:29 +01:00
parent 7b2f921472
commit 160d5b3473

View File

@ -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)