From ca42d0c0fa8267491cd5a1ade0421d48ee515060 Mon Sep 17 00:00:00 2001 From: p37sitdu Date: Mon, 14 Jan 2013 10:26:37 -0300 Subject: Remove unused function in dpid --- dpid/dpid_common.c | 11 ----------- dpid/dpid_common.h | 2 -- 2 files changed, 13 deletions(-) (limited to 'dpid') diff --git a/dpid/dpid_common.c b/dpid/dpid_common.c index 04e95a7d..23b49397 100644 --- a/dpid/dpid_common.c +++ b/dpid/dpid_common.c @@ -24,17 +24,6 @@ void errmsg(char *caller, char *called, int errornum, char *file, int line) MSG_ERR("%s\n", dStrerror(errornum)); } -/*! Selector function for scandir - * Do not scan files starting with '.' - */ -int no_dotfiles(const struct dirent *filedat) -{ - if (filedat->d_name[0] == '.') - return 0; - else - return 1; -} - /*! * Provides an error checked write command. * Call this via the CKD_WRITE macro diff --git a/dpid/dpid_common.h b/dpid/dpid_common.h index ed886e19..cc7505a9 100644 --- a/dpid/dpid_common.h +++ b/dpid/dpid_common.h @@ -54,8 +54,6 @@ enum file_type { void errmsg(char *caller, char *called, int errornum, char *file, int line); -int no_dotfiles(const struct dirent *filedat); - ssize_t ckd_write(int fd, char *msg, char *file, int line); ssize_t ckd_close(int fd, char *file, int line); -- cgit v1.2.3