Code

store: Removed unsed function sdb_service_create().
authorSebastian Harl <sh@tokkee.org>
Thu, 1 Aug 2013 23:34:05 +0000 (16:34 -0700)
committerSebastian Harl <sh@tokkee.org>
Thu, 1 Aug 2013 23:34:05 +0000 (16:34 -0700)
There is no need to expose this data-type.

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

index 1dcecaae363296190c65a4cfa47be4893563af80..8e41186f18fbbf4bd2d8d0d48cd80ace520b398a 100644 (file)
@@ -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)
 {
index 143fa7e54409a979aea959f5bbe4432d4473576b..14cb7c03cb36511c16bad98b4c213d12bc877083 100644 (file)
@@ -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,