Don't allow placing lights on turnips, obstacles or other lights.
[tabakrolletjie.git] / tabakrolletjie / turnip.py
index 72705fccdf7aa18e3548357ffc14954e0d9a41a8..b67196a525da4d00d19c024aee3880399194a49c 100644 (file)
@@ -14,14 +14,6 @@ TURNIP_FILTER = pymunk.ShapeFilter(
     categories=TURNIP_CATEGORY)
 
 
-def check_turnips(space, pos, max_distance):
-    point_info = space.point_query_nearest(
-        pos, max_distance, pymunk.ShapeFilter(mask=TURNIP_CATEGORY))
-    if point_info is not None:
-        return True
-    return False
-
-
 class TurnipInvalidPosition(Exception):
     pass