Skip to content

Commit

Permalink
Clean Storage code
Browse files Browse the repository at this point in the history
  • Loading branch information
SSirMentos committed Sep 19, 2024
1 parent a82e2df commit 990bb7d
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/main/java/Mentos/components/Storage.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,7 @@ public Storage(String FILE_PATH) {
*
* @throws IOException if an I/O error occurs while writing to the file.
*/
// public void saveTasksToFile(TaskList tasks) {
// try {
// FileWriter file = new FileWriter(FILE_PATH, false);
// for (Task task : tasks.getTasks()) {
// file.write(task.toString() + "\n");
// }
// file.close();
// } catch (IOException exception) {
// System.out.println("Please create a /data/Mentos.txt file in " + System.getProperty("user.dir"));
// }
// }

public void saveTasksToFile(TaskList tasks) {
File file = new File(FILE_PATH);
try {
Expand Down

0 comments on commit 990bb7d

Please sign in to comment.