From: Sebastian Harl Date: Wed, 24 Jul 2013 01:30:13 +0000 (-0700) Subject: store: Removed unused sdb_host_create() function. X-Git-Tag: sysdb-0.1.0~395 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d7a35839f6710e32a38f1cbd6cad7e756f31b1f2;p=sysdb.git store: Removed unused sdb_host_create() function. --- diff --git a/src/core/store.c b/src/core/store.c index 64e9f64..92f3e51 100644 --- a/src/core/store.c +++ b/src/core/store.c @@ -84,7 +84,7 @@ sdb_host_do_clone(const sdb_object_t *obj) const sdb_host_t *host = (const sdb_host_t *)obj; sdb_host_t *new; - new = sdb_host_create(obj->name); + new = SDB_HOST(sdb_object_create(obj->name, sdb_host_type)); if (! new) return NULL; @@ -217,20 +217,6 @@ const sdb_type_t sdb_service_type = { * public API */ -sdb_host_t * -sdb_host_create(const char *name) -{ - sdb_object_t *obj; - - if (! name) - return NULL; - - obj = sdb_object_create(name, sdb_host_type); - if (! obj) - return NULL; - return SDB_HOST(obj); -} /* sdb_host_create */ - int sdb_store_host(const sdb_host_t *host) { diff --git a/src/include/core/store.h b/src/include/core/store.h index fb79b39..22b1315 100644 --- a/src/include/core/store.h +++ b/src/include/core/store.h @@ -84,9 +84,6 @@ typedef struct { * objects */ #define _last_update super.last_update -sdb_host_t * -sdb_host_create(const char *name); - /* * sdb_store_host: * Add/update a host in the store. If the host, identified by its name,