# HG changeset patch # User jwe # Date 822360853 0 # Node ID 4688b760ccb2d43da8a0bc87574aa62c175cfe87 # Parent 78d87372e6013a0face0c460dc6ee7f1da58f147 [project @ 1996-01-23 01:34:07 by jwe] diff -r 78d87372e601 -r 4688b760ccb2 src/dirfns.cc --- a/src/dirfns.cc Mon Jan 22 23:40:32 1996 +0000 +++ b/src/dirfns.cc Tue Jan 23 01:34:13 1996 +0000 @@ -239,31 +239,6 @@ return current_path; } -// Has file `A' been modified after time `T'? -// -// case: -// -// a newer than t returns 1 -// a older than t returns 0 -// stat on a fails returns -1 - -int -is_newer (const string& fa, time_t t) -{ - struct stat fa_sb; - register int fa_stat; - register int status = 0; - - fa_stat = stat (fa.c_str (), &fa_sb); - if (fa_stat != 0) - status = -1; - - if (status != 0) - return status; - - return (fa_sb.st_mtime > t); -} - // Return a consed string which is the current working directory. // FOR_WHOM is the name of the caller for error printing. diff -r 78d87372e601 -r 4688b760ccb2 src/dirfns.h --- a/src/dirfns.h Mon Jan 22 23:40:32 1996 +0000 +++ b/src/dirfns.h Tue Jan 23 01:34:13 1996 +0000 @@ -33,7 +33,6 @@ extern int absolute_program (const string&); extern string base_pathname (const string&); extern string make_absolute (const string&, const string&); -extern int is_newer (const string&, time_t); extern string get_working_directory (const string&); #endif