Code

store: Removed unused function sdb_store_get_service().
authorSebastian Harl <sh@tokkee.org>
Thu, 1 Aug 2013 23:36:15 +0000 (16:36 -0700)
committerSebastian Harl <sh@tokkee.org>
Thu, 1 Aug 2013 23:36:15 +0000 (16:36 -0700)
This may be reintroduced if and when it's needed.

src/core/store.c
src/include/core/store.h

index 8e41186f18fbbf4bd2d8d0d48cd80ace520b398a..b96ff4e9054e46b76c45cc14be00d71e3966e62c 100644 (file)
@@ -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)
 {
index 14cb7c03cb36511c16bad98b4c213d12bc877083..6c833ec6e2162673dc012e63f28947d4a201ecb7 100644 (file)
@@ -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);