summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--syslogd-types.h1
-rw-r--r--syslogd.c27
2 files changed, 0 insertions, 28 deletions
diff --git a/syslogd-types.h b/syslogd-types.h
index 95c2b20f..5e4d262a 100644
--- a/syslogd-types.h
+++ b/syslogd-types.h
@@ -127,7 +127,6 @@ struct syslogTime {
* be guarded by mutexes. But beware of deadlocks...
*/
struct filed {
- int iID; /* ID of this entry - a "selector handle" */
struct filed *f_next; /* next in linked list */
short bEnabled; /* is the related action enabled (1) or disabled (0)? */
time_t f_time; /* time this was last written */
diff --git a/syslogd.c b/syslogd.c
index a0eba597..8597d026 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -1412,33 +1412,6 @@ static int srSLMGParseTIMESTAMP3164(struct syslogTime *pTime, char* pszTS)
* END CODE-LIBLOGGING *
*******************************************************************/
-/* find a selector entry based on its ID.
- * rgerhards, 2007-07-26
- */
-static rsRetVal findSelector(int iID, selector_t **ppf)
-{
- selector_t *f;
- selector_t *psFound;
- rsRetVal iRet;
-
- assert(ppf != NULL);
- for(f = Files; f != NULL && psFound == NULL ; f = f->f_next) {
- if(f->iID == iID) {
- psFound = f;
- }
- }
-
- if(psFound != NULL) {
- *ppf = psFound;
- iRet = RS_RET_OK;
- } else {
- iRet = RS_RET_NOT_FOUND;
- }
-
- return iRet;
-}
-
-
/**
* Format a syslogTimestamp into format required by MySQL.
* We are using the 14 digits format. For example 20041111122600