From 8b6991822fa8dd803caa46fc925cad1e297f3ded Mon Sep 17 00:00:00 2001 From: antopilo Date: Wed, 11 Sep 2024 22:57:17 -0400 Subject: [PATCH] Removed NuakeUI FileSystem --- Nuake/src/UI/FileSystem.cpp | 34 ---------------------------------- Nuake/src/UI/FileSystem.h | 11 ----------- 2 files changed, 45 deletions(-) delete mode 100644 Nuake/src/UI/FileSystem.cpp delete mode 100644 Nuake/src/UI/FileSystem.h diff --git a/Nuake/src/UI/FileSystem.cpp b/Nuake/src/UI/FileSystem.cpp deleted file mode 100644 index 27cc16a9..00000000 --- a/Nuake/src/UI/FileSystem.cpp +++ /dev/null @@ -1,34 +0,0 @@ -#include "FileSystem.h" -#include -#include - -namespace NuakeUI -{ - namespace FileSystem - { - bool FileExists(const std::string& path) - { - return std::filesystem::exists(path); - } - - std::string ReadFile(const std::string& path) - { - if (!FileExists(path)) - return ""; - - std::string fileContent; - std::string currentLine; - - std::ifstream file(path); - - while (getline(file, currentLine)) - { - fileContent += currentLine + "\n"; - } - - file.close(); - - return fileContent; - } - } -} \ No newline at end of file diff --git a/Nuake/src/UI/FileSystem.h b/Nuake/src/UI/FileSystem.h deleted file mode 100644 index 437b3942..00000000 --- a/Nuake/src/UI/FileSystem.h +++ /dev/null @@ -1,11 +0,0 @@ -#pragma once -#include - -namespace NuakeUI -{ - namespace FileSystem - { - bool FileExists(const std::string& path); - std::string ReadFile(const std::string& path); - }; -}