diff --git a/src/apcupsd.c b/src/apcupsd.c index 9aa557c3..d6b6e762 100644 --- a/src/apcupsd.c +++ b/src/apcupsd.c @@ -227,15 +227,3 @@ void update_apcupsd(void) { memcpy(info.apcupsd.items, apc.items, sizeof(info.apcupsd.items)); return; } - -// -// fills in the N/A strings and default host:port -// -void init_apcupsd(void) { - - int i; - for (i = 0; i < _APCUPSD_COUNT; ++i) - memcpy(info.apcupsd.items[i], "N/A", 4); // including \0 - memcpy(info.apcupsd.host, "localhost", 10); - info.apcupsd.port = htons(3551); -} diff --git a/src/apcupsd.h b/src/apcupsd.h index 307d0676..d452833f 100644 --- a/src/apcupsd.h +++ b/src/apcupsd.h @@ -51,7 +51,4 @@ typedef struct apcupsd_s { /* Service routine for the conky main thread */ void update_apcupsd(void); -/* fill in the default values */ -void init_apcupsd(void); - #endif /*APCUPSD_H_*/ diff --git a/src/core.c b/src/core.c index dcea7017..c497ed87 100644 --- a/src/core.c +++ b/src/core.c @@ -2123,7 +2123,6 @@ struct text_object *construct_text_object(const char *s, const char *arg, long } #endif /* NVIDIA */ #ifdef APCUPSD - init_apcupsd(); END OBJ(apcupsd, &update_apcupsd) if (arg) { char host[64];