From bf0bd8a06989057cd9925e3a58a3a1b1ba78ab97 Mon Sep 17 00:00:00 2001 From: hanwen Date: Thu, 2 Feb 2006 20:39:26 +0000 Subject: [PATCH] (is_file): remove if 0 section. --- ChangeLog | 2 ++ flower/file-path.cc | 9 --------- 2 files changed, 2 insertions(+), 9 deletions(-) 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) -- 2.39.5