FS: Removed unused ::read method

This commit is contained in:
Paul Beckingham 2015-10-28 11:09:38 -04:00
parent 411c735d4e
commit 67c28b7015
2 changed files with 0 additions and 20 deletions

View file

@ -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)
{

View file

@ -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 <std::string>&);
static bool write (const std::string&, const std::string&);