From 887a5aa65f255ac0ae4fdc2e7a3ad1c94a435da8 Mon Sep 17 00:00:00 2001 From: oga Date: Tue, 15 Apr 2008 20:26:50 +0000 Subject: Kill dirent_isdir() and dirent_islink() nothing used them since the new parser went in. ok okan. --- util.c | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'util.c') diff --git a/util.c b/util.c index fdca4af..4379aa3 100644 --- a/util.c +++ b/util.c @@ -64,31 +64,3 @@ exec_wm(char *argstr) execvp(args[0], args); warn(args[0]); } - -int -dirent_isdir(char *filename) -{ - struct stat buffer; - int return_value; - - return_value = stat(filename, &buffer); - - if (return_value == -1) - return (0); - else - return (S_ISDIR(buffer.st_mode)); -} - -int -dirent_islink(char *filename) -{ - struct stat buffer; - int return_value; - - return_value = lstat(filename, &buffer); - - if (return_value == -1) - return (0); - else - return (S_ISLNK(buffer.st_mode)); -} -- cgit 1.4.1