Skip to content

Commit

Permalink
Revert "remove unused function"
Browse files Browse the repository at this point in the history
This reverts commit cb3755d.

Conflicts:

	config/depgen.cpp
  • Loading branch information
Alexander Voigt committed Oct 14, 2015
1 parent e5db9a6 commit 3ea77ca
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions config/depgen.cpp
Expand Up @@ -25,6 +25,15 @@
#include <string>
#include <vector>

/// returns directory from file name
std::string directory(const std::string& file_name)
{
const std::size_t pos = file_name.find_last_of("/\\");
if (pos == std::string::npos)
return ".";
return file_name.substr(0,pos);
}

/// checks if given file exists
bool file_exists(const std::string& name)
{
Expand Down

0 comments on commit 3ea77ca

Please sign in to comment.