From 05e5fe4067ef7558240491ae51c78b579f13e7a0 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Sat, 19 May 2018 09:21:52 +0100 Subject: Removing parentDirectory, as it's not needed --- yage/core/iomanager.cpp | 5 ----- yage/core/iomanager.h | 2 -- 2 files changed, 7 deletions(-) diff --git a/yage/core/iomanager.cpp b/yage/core/iomanager.cpp index 487ef8a9..b4e6847e 100644 --- a/yage/core/iomanager.cpp +++ b/yage/core/iomanager.cpp @@ -42,11 +42,6 @@ bool readFileToBuffer(const std::string &file_path, return true; } -std::string parentDirectory(std::string file_path) -{ - return std::regex_replace(file_path, std::regex("(.*)/.*"), "$1"); -} - } } // namespace yage diff --git a/yage/core/iomanager.h b/yage/core/iomanager.h index 556cffb4..adf91ace 100644 --- a/yage/core/iomanager.h +++ b/yage/core/iomanager.h @@ -21,8 +21,6 @@ namespace IoManager extern bool readFileToBuffer(const std::string &file_path, std::vector &buffer); -extern std::string parentDirectory(std::string file_path); - } } // namespace yage -- cgit