From 620d398b51f4131f17da2767884f75b0f3e9bc30 Mon Sep 17 00:00:00 2001 From: Omair Majid Date: Sat, 13 Apr 2019 05:49:39 -0400 Subject: [PATCH] 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 --- src/installer/corehost/common/pal.unix.cpp | 12 ------------ 1 file changed, 12 deletions(-) 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. -- 2.7.4