From: hanwen Date: Thu, 2 Feb 2006 20:39:26 +0000 (+0000) Subject: (is_file): remove if 0 section. X-Git-Tag: release/2.7.38^2~208 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=bf0bd8a06989057cd9925e3a58a3a1b1ba78ab97;p=lilypond.git (is_file): remove if 0 section. --- diff --git a/ChangeLog b/ChangeLog index 16c9a7bf9d..3096c441e4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2006-02-02 Han-Wen Nienhuys + * flower/file-path.cc (is_file): remove if 0 section. + * buildscripts/pfx2ttf.fontforge (err): robustness fix for selecting afii61352. diff --git a/flower/file-path.cc b/flower/file-path.cc index ea963ca355..c896a650fe 100644 --- a/flower/file-path.cc +++ b/flower/file-path.cc @@ -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)