Kill dirent_isdir() and dirent_islink() nothing used them since the new

parser went in.

ok okan.
This commit is contained in:
oga 2008-04-15 20:26:50 +00:00
parent 75182c6d9c
commit 887a5aa65f
2 changed files with 0 additions and 31 deletions

View File

@ -400,9 +400,6 @@ void xu_setstate(struct client_ctx *, int);
int xu_getstate(struct client_ctx *, int *); int xu_getstate(struct client_ctx *, int *);
void xu_key_grab_keycode(Window, int, int); void xu_key_grab_keycode(Window, int, int);
int dirent_exists(char *);
int dirent_isdir(char *);
int dirent_islink(char *);
int u_spawn(char *); int u_spawn(char *);
void exec_wm(char *); void exec_wm(char *);

28
util.c
View File

@ -64,31 +64,3 @@ exec_wm(char *argstr)
execvp(args[0], args); execvp(args[0], args);
warn(args[0]); 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));
}