loolwsd/Util.cpp | 14 -------------- loolwsd/Util.hpp | 2 -- 2 files changed, 16 deletions(-)
New commits: commit a25b7ad712c800aad873a84351c30abd388543cb Author: Tor Lillqvist <t...@collabora.com> Date: Mon Apr 25 11:23:08 2016 +0300 Bin unused Util::createRandomFile() diff --git a/loolwsd/Util.cpp b/loolwsd/Util.cpp index aef31fe..77cfb3d 100644 --- a/loolwsd/Util.cpp +++ b/loolwsd/Util.cpp @@ -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; diff --git a/loolwsd/Util.hpp b/loolwsd/Util.hpp index ff1b877..00cf54c 100644 --- a/loolwsd/Util.hpp +++ b/loolwsd/Util.hpp @@ -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(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits