From 2e3a09a64f424fa2ead7d35ebcc24034de8b3586 Mon Sep 17 00:00:00 2001 From: Viljami Ilola <+@hix.fi> Date: Sat, 16 Mar 2024 22:31:17 +0200 Subject: remove unused code --- src/sliceitoff/field/field.py | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/sliceitoff/field/field.py') diff --git a/src/sliceitoff/field/field.py b/src/sliceitoff/field/field.py index c0c482d..c89ecdf 100644 --- a/src/sliceitoff/field/field.py +++ b/src/sliceitoff/field/field.py @@ -17,9 +17,7 @@ class FieldSprite(pygame.sprite.Sprite): class Field(): def __init__(self): self.sprites = pygame.sprite.Group() -# self.updated = True self.sprites.add(FieldSprite( (0, 0, 40_000, 28_000) )) -# self.areas = [(0,0,40_000,28_000)] def coordinates_inside_area(self, area, x, y) -> bool: if x < area[0]: @@ -47,7 +45,6 @@ class Field(): field.remove(self.sprites) # create new areas if there is any space -# self.updated = True if direction: x1 = ax @@ -71,16 +68,8 @@ class Field(): self.sprites.add(FieldSprite( (ax, y3, aw, y4-y3) )) return Scaling.area_to_rect((ax, y2, aw, y3-y2)) - def __update_sprites(self): - """""" -# self.sprites.empty() -# for area in self.areas: -# self.sprites.add(FieldSprite(Scaling.area_to_rect(area))) -# self.updated = False def get_sprites(self) -> pygame.sprite.Group: -# if self.updated: -# self.__update_sprites() return self.sprites def __del__(self): -- cgit v1.2.3