From: Omair Majid Date: Sat, 13 Apr 2019 09:49:39 +0000 (-0400) Subject: Remove unused is_executable function in pal.unix.cpp (dotnet/core-setup#5814) X-Git-Tag: submit/tizen/20210909.063632~11032^2~259 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=620d398b51f4131f17da2767884f75b0f3e9bc30;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Remove unused is_executable function in pal.unix.cpp (dotnet/core-setup#5814) The function is declared as static. The only other function that called it was removed in commit ad495acf. Commit migrated from https://github.com/dotnet/core-setup/commit/cdcc62925ec47a2affb0249c6c6b8c14e3070430 --- diff --git a/src/installer/corehost/common/pal.unix.cpp b/src/installer/corehost/common/pal.unix.cpp index e0701d3..55e2461 100644 --- a/src/installer/corehost/common/pal.unix.cpp +++ b/src/installer/corehost/common/pal.unix.cpp @@ -183,18 +183,6 @@ bool pal::get_default_servicing_directory(string_t* recv) return true; } -static -bool is_executable(const pal::string_t& file_path) -{ - struct stat st; - if (::stat(file_path.c_str(), &st) < 0) - { - return false; - } - - return ((st.st_mode & S_IEXEC) != 0); -} - bool pal::get_global_dotnet_dirs(std::vector* recv) { // No support for global directories in Unix.