]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/file-path.cc
(is_file): remove if 0 section.
[lilypond.git] / flower / file-path.cc
index ea963ca355b876787e700a0fd925f3229bcdc63a..c896a650feb4621edec08c82218d5e34ba0ecd3d 100644 (file)
@@ -60,15 +60,6 @@ File_path::parse_path (std::string p)
 bool
 is_file (std::string file_name)
 {
-#if 0 /* Check if directory. TODO: encapsulate for autoconf */
-  struct stat sbuf;
-  if (stat (file_name.c_str (), &sbuf) != 0)
-    return false;
-
-  if (! (sbuf.st_mode & __S_IFREG))
-    return false;
-#endif
-
 #if !STAT_MACROS_BROKEN
   struct stat sbuf;
   if (stat (file_name.c_str (), &sbuf) != 0)