From 67c28b70150ba7407c6f55eac9ed5a73d73a7db5 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Wed, 28 Oct 2015 11:09:38 -0400 Subject: [PATCH] FS: Removed unused ::read method --- src/FS.cpp | 19 ------------------- src/FS.h | 1 - 2 files changed, 20 deletions(-) diff --git a/src/FS.cpp b/src/FS.cpp index 829296b3a..45918c058 100644 --- a/src/FS.cpp +++ b/src/FS.cpp @@ -629,25 +629,6 @@ bool File::create (const std::string& name, int mode /* = 0640 */) return false; } -//////////////////////////////////////////////////////////////////////////////// -std::string File::read (const std::string& name) -{ - std::string contents = ""; - - std::ifstream in (name.c_str ()); - if (in.good ()) - { - std::string line; - line.reserve (1024); - while (getline (in, line)) - contents += line + "\n"; - - in.close (); - } - - return contents; -} - //////////////////////////////////////////////////////////////////////////////// bool File::read (const std::string& name, std::string& contents) { diff --git a/src/FS.h b/src/FS.h index a045f4c26..0b62c276e 100644 --- a/src/FS.h +++ b/src/FS.h @@ -104,7 +104,6 @@ public: virtual time_t btime () const; static bool create (const std::string&, int mode = 0640); - static std::string read (const std::string&); static bool read (const std::string&, std::string&); static bool read (const std::string&, std::vector &); static bool write (const std::string&, const std::string&);