From 5f0d3ef2fd79cf60c42abb8d4f9d08bc34761bb5 Mon Sep 17 00:00:00 2001
From: Justus Mueller <justus.mueller@fau.de>
Date: Thu, 27 Jun 2024 09:37:31 +0200
Subject: [PATCH] chore: Remove unused methods

---
 src/drive_handle.py | 19 -------------------
 1 file changed, 19 deletions(-)

diff --git a/src/drive_handle.py b/src/drive_handle.py
index 8862f4f..cec44ec 100644
--- a/src/drive_handle.py
+++ b/src/drive_handle.py
@@ -51,15 +51,6 @@ class DriveHandle:
         self._MAX_RAM_ALLOCATION = max_memory * 1_024 * 1_024  # convert from MiB to B
         self._drive_letter = drive_letter
 
-    def get_free_drive_space(self) -> int:
-        """
-        Determines the free usable disk space on the drive
-
-        Returns:
-            free_disk_space (int): The free disk space measured in bytes
-        """
-        return psutil.disk_usage(self.get_path()).free
-
     def get_drive_size(self) -> int:
         """
         Determines the total drive size
@@ -206,16 +197,6 @@ class DriveHandle:
         if (os.path.isdir(f'{self._drive_letter}:\\demo')):
             shutil.rmtree(f'{self._drive_letter}:\\demo')
 
-    def delete_file(self, path: str) -> None:
-        """
-        Deletes the specified file without moving it to the recyle bin
-
-        Parameters:
-            path (str): The path to the deletable file
-        """
-        print(colored(f"[DriveHandle] Deleting file {path}.", "light_grey"))
-        os.remove(path)
-
     def read_cluster(self, cluster_number: int) -> bytes:
         """
         Reads a cluster from the disk
-- 
GitLab