Bin unused Util::createRandomFile()

This commit is contained in:
Tor Lillqvist 2016-04-25 11:23:08 +03:00
parent 581037d45e
commit a25b7ad712
2 changed files with 0 additions and 16 deletions

View file

@ -127,20 +127,6 @@ namespace Util
}
}
std::string createRandomFile(const std::string& path)
{
Poco::File(path).createDirectories();
for (;;)
{
const auto name = Util::encodeId(rng::getNext());
Poco::File file(Poco::Path(path, name));
if (file.createFile())
{
return name;
}
}
}
bool windowingAvailable()
{
return std::getenv("DISPLAY") != nullptr;

View file

@ -45,8 +45,6 @@ namespace Util
/// Creates a randomly name directory within path and returns the name.
std::string createRandomDir(const std::string& path);
/// Creates a randomly name file within path and returns the name.
std::string createRandomFile(const std::string& path);
bool windowingAvailable();