changeset 481:fe39fc9700d0

Irccd: remove fs::isSymlink (unused), #594
author David Demelier <markand@malikania.fr>
date Thu, 16 Feb 2017 13:00:54 +0100
parents 2c7cb5b936b4
children 541de6e61ac3
files libcommon/irccd/fs.cpp libcommon/irccd/fs.hpp
diffstat 2 files changed, 0 insertions(+), 24 deletions(-) [+]
line wrap: on
line diff
--- 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.
  * ------------------------------------------------------------------
  */
--- 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