diff --git a/static/homepage.js b/static/homepage.js
index 21baf9ee3db1d6263eee10738fcd99cbeec5385d..850a7a7ab6390c948591c8a8638d0ddbb53bc43d 100644
--- a/static/homepage.js
+++ b/static/homepage.js
@@ -270,12 +270,6 @@ function draw(){
 draw();
 window.addEventListener('scroll', draw);
 
-
-function canDraw(y1, y2) {
-    if (y2 < top_screen || y1 > bottom_screen) return false;
-    else return true;
-}
-
 function verticalLine_timeline(x, y1, y2, ctx, canvas_h) {
     if (current_line >= y1 && canvas_h >= start_height) {
         if (canDraw(y1, y2)) ctx.moveTo(x, y1);