Remove unused pos arg.
authorSimon Cross <hodgestar@gmail.com>
Sat, 10 Sep 2016 19:45:11 +0000 (21:45 +0200)
committerSimon Cross <hodgestar@gmail.com>
Sat, 10 Sep 2016 19:45:11 +0000 (21:45 +0200)
tabakrolletjie/rays.py

index 8a79c34c57b4c3ff89a7d31681c1c5ec0915f385..a475d8fb27bb6c680a90555cad7dc2a4f6043954 100644 (file)
@@ -12,7 +12,7 @@ from .constants import SCREEN_SIZE
 from .utils import debug_timer
 
 
-def screen_rays(pos):
+def screen_rays():
     """ An iterable that returns ordered rays from pos to the edge of the
         screen, starting with the edge point (0, 0) and continuing clockwise
         in pymunk coordinates.
@@ -40,7 +40,7 @@ def calculate_ray_polys(space, position, light_filter):
     vertices = [position]
     start, end = None, None
     ray_polys = []
-    for ray in screen_rays(position):
+    for ray in screen_rays():
         info = space.segment_query_first(position, ray, 1, light_filter)
         point = ray if info is None else info.point
         vertices.append(point)