From: Sebastian Harl Date: Thu, 1 Aug 2013 23:36:15 +0000 (-0700) Subject: store: Removed unused function sdb_store_get_service(). X-Git-Tag: sysdb-0.1.0~390 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9a0ead9da5ec1bcebf4d8ef236a7ed661729aaa3;p=sysdb.git store: Removed unused function sdb_store_get_service(). This may be reintroduced if and when it's needed. --- diff --git a/src/core/store.c b/src/core/store.c index 8e41186..b96ff4e 100644 --- a/src/core/store.c +++ b/src/core/store.c @@ -447,20 +447,6 @@ sdb_store_service(const sdb_service_t *svc) return status; } /* sdb_store_service */ -const sdb_service_t * -sdb_store_get_service(const sdb_host_t *host, const char *name) -{ - sdb_service_t *svc; - - if ((! host) || (! name)) - return NULL; - - svc = SDB_SVC(sdb_llist_search_by_name(host->services, name)); - if (! svc) - return NULL; - return svc; -} /* sdb_store_get_service */ - int sdb_store_dump(FILE *fh) { diff --git a/src/include/core/store.h b/src/include/core/store.h index 14cb7c0..6c833ec 100644 --- a/src/include/core/store.h +++ b/src/include/core/store.h @@ -142,9 +142,6 @@ sdb_store_attribute(const sdb_attribute_t *attr); int sdb_store_service(const sdb_service_t *svc); -const sdb_service_t * -sdb_store_get_service(const sdb_host_t *host, const char *name); - int sdb_store_dump(FILE *fh);