From b1bab2a33c2341ac032cca8d2e01eab4abba2249 Mon Sep 17 00:00:00 2001
From: andyh98 <hameea1@mcmaster.ca>
Date: Thu, 25 Oct 2018 20:24:48 -0400
Subject: [PATCH] removed unused function

---
 BlankProjectTemplate/POC_Demo/Snake_2.o_Demo.py | 17 +++++------------
 1 file changed, 5 insertions(+), 12 deletions(-)

diff --git a/BlankProjectTemplate/POC_Demo/Snake_2.o_Demo.py b/BlankProjectTemplate/POC_Demo/Snake_2.o_Demo.py
index 7cfe05a..7dde949 100644
--- a/BlankProjectTemplate/POC_Demo/Snake_2.o_Demo.py
+++ b/BlankProjectTemplate/POC_Demo/Snake_2.o_Demo.py
@@ -28,20 +28,13 @@ axis = 0
 
 run = True
 
-def changeXY(x,y,axis,direction):
-    if not (axis):
-        x += vel*direction
-##    else:
-##        y += vel*direction
-        
-
 while run:
     pygame.time.delay(speed) #create a delay to prevent any unwanted behaviour
 
     #events are anything that happens from the user
     #we loop through the list of events that happen by the user's actions
     for event in pygame.event.get():
-        
+
         if event.type == pygame.QUIT:
             run = False
 
@@ -56,7 +49,7 @@ while run:
             if (event.key == pygame.K_DOWN):
                     axis = 1;direction=1
 
-    #Snake moving depending on axis and direction        
+    #Snake moving depending on axis and direction
     if (axis):
         y += vel*direction
     else:
@@ -70,15 +63,15 @@ while run:
     if y < 0:
         #y = 0
         y = screen_y - width
-        
+
     if y > screen_y - width:
         #y = 500 - width
         y = 0
     if x > screen_x - height:
         #x = 500 - height
         x = 0
-        
-    win.fill(white)      
+
+    win.fill(white)
     #all colors are defined in RGB with Pygame
     pygame.draw.rect(win,(255,0,0), (x,y,width, height))
     #we have to update the display to see the drawing of our object. Since it does
-- 
GitLab