diff --git a/userprog/syscall.c b/userprog/syscall.c
index c015dd1cccd641dfeaf08f0ed42a1c1f65ebb50d..945a0e62023001ef72041d11065740b162b263a6 100644
--- a/userprog/syscall.c
+++ b/userprog/syscall.c
@@ -79,34 +79,4 @@ syscall_handler (struct intr_frame *f UNUSED)
     printf ("WARNING: Invalid Syscall (%d)\n", syscall_number);
 	thread_exit();
   }  
-}
-
-static struct list *file_list;
-
-/* Goes through all the files in the file_list and looks for the given file 
- * Descriptor. Linear search
- */
-void file_search(struct file_map *f) {
-	// Creates a struct to hold the currently checked file
-	struct file_map *curr_file;
-	// Creates the list element to test for end of list
-	struct list_elem *list_element;
-	*list_element = *list_begin(file_list);
-
-	// Loop to check each file in the linked list in turn
-	while ((curr_file->file_descriptor != f->file_descriptor) &&
-		(is_tail(list_element) == false)
-		) {
-		// Swaps the list_element for the next one in place
-		list_element = list_next(list_element);
-	}
-	// Copies list_element to current file
-	curr_file->list_element = *list_element;
-	// Checks if file has been found returning NULL if not or the file if it has
-	if (curr_file->file_descriptor != f->file_descriptor) {
-		f->file = NULL;
-	}
-	else {
-		f = curr_file;
-	}
 }
\ No newline at end of file
diff --git a/userprog/syscall.h b/userprog/syscall.h
index 4adc2988a944f4e68b80475e5f6449503ca06849..90590967a9f96f9ea359d15c672b815dfb4379cb 100644
--- a/userprog/syscall.h
+++ b/userprog/syscall.h
@@ -3,6 +3,4 @@
 
 void syscall_init (void);
 
-void file_search(struct file_map *f);
-
 #endif /* userprog/syscall.h */