From 4b9f10d64429707e085921304a69aa035c238e5c Mon Sep 17 00:00:00 2001 From: Sascha Willems Date: Mon, 20 Apr 2020 21:39:30 +0200 Subject: [PATCH] Code cleanup --- base/VulkanTools.cpp | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/base/VulkanTools.cpp b/base/VulkanTools.cpp index 29b558ac..5e720fc8 100644 --- a/base/VulkanTools.cpp +++ b/base/VulkanTools.cpp @@ -294,23 +294,6 @@ namespace vks exitFatal(message, (int32_t)resultCode); } - std::string readTextFile(const char *fileName) - { - std::string fileContent; - std::ifstream fileStream(fileName, std::ios::in); - if (!fileStream.is_open()) { - printf("File %s not found\n", fileName); - return ""; - } - std::string line = ""; - while (!fileStream.eof()) { - getline(fileStream, line); - fileContent.append(line + "\n"); - } - fileStream.close(); - return fileContent; - } - #if defined(__ANDROID__) // Android shaders are stored as assets in the apk // So they need to be loaded via the asset manager