summaryrefslogtreecommitdiff
path: root/src/sliceitoff/field
diff options
context:
space:
mode:
authorViljami Ilola <+@hix.fi>2024-03-16 22:31:17 +0200
committerViljami Ilola <+@hix.fi>2024-03-16 22:31:17 +0200
commit2e3a09a64f424fa2ead7d35ebcc24034de8b3586 (patch)
treecf40425c68e11acab806776efd3caa38c6dcee25 /src/sliceitoff/field
parent4050057c34c67130cf5f1d202ca85cb81985f968 (diff)
remove unused code
Diffstat (limited to 'src/sliceitoff/field')
-rw-r--r--src/sliceitoff/field/field.py11
1 files changed, 0 insertions, 11 deletions
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):