From 30a857cf51e15b453348ea95a13007e60a4f3812 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Thu, 1 Aug 2013 16:34:05 -0700 Subject: [PATCH] store: Removed unsed function sdb_service_create(). There is no need to expose this data-type. --- src/core/store.c | 17 ++--------------- src/include/core/store.h | 3 --- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/src/core/store.c b/src/core/store.c index 1dcecaa..8e41186 100644 --- a/src/core/store.c +++ b/src/core/store.c @@ -181,7 +181,8 @@ sdb_svc_clone(const sdb_object_t *obj) const sdb_service_t *svc = (const sdb_service_t *)obj; sdb_service_t *new; - new = sdb_service_create(svc->hostname, obj->name); + new = SDB_SVC(sdb_object_create(obj->name, sdb_service_type, + svc->hostname)); if (! new) return NULL; @@ -384,20 +385,6 @@ sdb_store_attribute(const sdb_attribute_t *attr) return status; } /* sdb_store_attribute */ -sdb_service_t * -sdb_service_create(const char *hostname, const char *name) -{ - sdb_object_t *obj; - - if ((! hostname) || (! name)) - return NULL; - - obj = sdb_object_create(name, sdb_service_type, hostname); - if (! obj) - return NULL; - return SDB_SVC(obj); -} /* sdb_service_create */ - int sdb_store_service(const sdb_service_t *svc) { diff --git a/src/include/core/store.h b/src/include/core/store.h index 143fa7e..14cb7c0 100644 --- a/src/include/core/store.h +++ b/src/include/core/store.h @@ -123,9 +123,6 @@ sdb_store_has_host(const char *name); int sdb_store_attribute(const sdb_attribute_t *attr); -sdb_service_t * -sdb_service_create(const char *hostname, const char *name); - /* * sdb_store_service: * Add/update a store in the store. If the service, identified by its name, -- 2.30.2