Bin unused Util::createRandomFile()
This commit is contained in:
parent
581037d45e
commit
a25b7ad712
2 changed files with 0 additions and 16 deletions
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue