# HG changeset patch # User David Demelier # Date 1487246454 -3600 # Node ID fe39fc9700d09f713ab5bc1eb91aecc2bf8dd632 # Parent 2c7cb5b936b48ccbe483f90cc1075853af032eaa Irccd: remove fs::isSymlink (unused), #594 diff -r 2c7cb5b936b4 -r fe39fc9700d0 libcommon/irccd/fs.cpp --- a/libcommon/irccd/fs.cpp Thu Feb 16 12:56:24 2017 +0100 +++ b/libcommon/irccd/fs.cpp Thu Feb 16 13:00:54 2017 +0100 @@ -261,21 +261,6 @@ } /* - * isSymlink. - * ------------------------------------------------------------------ - */ -bool isSymlink(const std::string &path) -{ - return typeOf(path, [] (const auto &object) { -#if defined(_WIN32) - return (object & FILE_ATTRIBUTE_REPARSE_POINT) == FILE_ATTRIBUTE_REPARSE_POINT; -#elif defined(FS_HAVE_STAT) - return S_ISLNK(object.st_mode); -#endif - }); -} - -/* * stat. * ------------------------------------------------------------------ */ diff -r 2c7cb5b936b4 -r fe39fc9700d0 libcommon/irccd/fs.hpp --- a/libcommon/irccd/fs.hpp Thu Feb 16 12:56:24 2017 +0100 +++ b/libcommon/irccd/fs.hpp Thu Feb 16 13:00:54 2017 +0100 @@ -203,15 +203,6 @@ IRCCD_EXPORT bool isDirectory(const std::string &path); /** - * Check if the file is a symbolic link. - * - * \param path the path - * \return true if it is a symbolic link and false if not or not readable - * \throw std::runtime_error if the operation is not supported - */ -IRCCD_EXPORT bool isSymlink(const std::string &path); - -/** * Read a directory and return a list of entries (not recursive). * * \param path the directory path