Remove unused is_executable function in pal.unix.cpp (dotnet/core-setup#5814)
authorOmair Majid <omajid@redhat.com>
Sat, 13 Apr 2019 09:49:39 +0000 (05:49 -0400)
committerVitek Karas <vitek.karas@microsoft.com>
Sat, 13 Apr 2019 09:49:39 +0000 (02:49 -0700)
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

index e0701d3..55e2461 100644 (file)
@@ -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<pal::string_t>* recv)
 {
     // No support for global directories in Unix.