summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2008-04-15 20:26:51 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2008-04-15 20:26:51 +0000
commit137365b51ad032cfef837eb721176afc9ecbb08e (patch)
tree3a24927f1651788be9f1965a75097f0e8222ef08
parent6c2511bac22d67337971a08bada1d79809d39d14 (diff)
Kill dirent_isdir() and dirent_islink() nothing used them since the new
parser went in. ok okan.
-rw-r--r--app/cwm/calmwm.h5
-rw-r--r--app/cwm/util.c30
2 files changed, 2 insertions, 33 deletions
diff --git a/app/cwm/calmwm.h b/app/cwm/calmwm.h
index a0e131360..ed2e3f481 100644
--- a/app/cwm/calmwm.h
+++ b/app/cwm/calmwm.h
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: calmwm.h,v 1.30 2008/04/15 20:24:41 oga Exp $
+ * $Id: calmwm.h,v 1.31 2008/04/15 20:26:50 oga Exp $
*/
#ifndef _CALMWM_H_
@@ -400,9 +400,6 @@ void xu_setstate(struct client_ctx *, int);
int xu_getstate(struct client_ctx *, 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 *);
void exec_wm(char *);
diff --git a/app/cwm/util.c b/app/cwm/util.c
index d8cd7fa24..4b10d722c 100644
--- a/app/cwm/util.c
+++ b/app/cwm/util.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: util.c,v 1.6 2008/04/15 20:24:41 oga Exp $
+ * $Id: util.c,v 1.7 2008/04/15 20:26:50 oga Exp $
*/
#include "headers.h"
@@ -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));
-}