From 080ad535e6fc6666b919b1a21b6986aaf9b678eb Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Wed, 23 Oct 2024 21:27:01 +0200 Subject: initial nitpicking --- resource-manager/resource_fabricator.cpp | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 resource-manager/resource_fabricator.cpp (limited to 'resource-manager/resource_fabricator.cpp') diff --git a/resource-manager/resource_fabricator.cpp b/resource-manager/resource_fabricator.cpp deleted file mode 100644 index 0633a40..0000000 --- a/resource-manager/resource_fabricator.cpp +++ /dev/null @@ -1,26 +0,0 @@ - - -#include "resource_fabricator.h" -#include -#include -#include -#include - - - - -std::string ResourceFactory::convert_file_to_string(const std::string& path){ - std::ifstream file(path, std::ios::binary | std::ios::ate); - if (!file.is_open()) { - std::cerr << "Failed to open file: " << path << std::endl; - return ""; - } - - std::ifstream::pos_type fileSize = file.tellg(); - file.seekg(0, std::ios::beg); - - std::vector bytes(fileSize); - file.read(bytes.data(), fileSize); - - return std::string(bytes.begin(), bytes.end()); -} -- cgit v1.2.3