]> git.donarmstrong.com Git - lilypond.git/commitdiff
(is_file): remove if 0 section.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 2 Feb 2006 20:39:26 +0000 (20:39 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 2 Feb 2006 20:39:26 +0000 (20:39 +0000)
ChangeLog
flower/file-path.cc

index 16c9a7bf9d6707a29eb9032b66732e3222797b5b..3096c441e4d9d572d830f6d6ef17b1fb971afc60 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2006-02-02  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
+       * flower/file-path.cc (is_file): remove if 0 section.
+
        * buildscripts/pfx2ttf.fontforge (err): robustness fix for
        selecting afii61352.
 
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)