This is an automated email from the ASF dual-hosted git repository.

gmurthy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-dispatch.git


The following commit(s) were added to refs/heads/master by this push:
     new ceb19cf  DISPATCH-1904: Removed unused function qd_entity_set_stringf 
which was causing compilation error. This closes #969.
ceb19cf is described below

commit ceb19cfa4ec3bdb7299e7108a1d201eb56149059
Author: Ganesh Murthy <[email protected]>
AuthorDate: Mon Jan 4 13:01:39 2021 -0500

    DISPATCH-1904: Removed unused function qd_entity_set_stringf which was 
causing compilation error. This closes #969.
---
 src/entity.c | 19 -------------------
 src/entity.h |  3 ---
 2 files changed, 22 deletions(-)

diff --git a/src/entity.c b/src/entity.c
index c1fb9b7..1e77bfe 100644
--- a/src/entity.c
+++ b/src/entity.c
@@ -259,22 +259,3 @@ qd_error_t qd_entity_set_map_key_value_string(qd_entity_t 
*entity, const char *a
     return ret;
 }
 
-
-
-
-qd_error_t qd_entity_set_stringf(qd_entity_t *entity, const char* attribute, 
const char *format, ...)
-{
-    // Calculate the size
-    char dummy[1];
-    va_list ap;
-    va_start(ap, format);
-    size_t len = vsnprintf(dummy, 1, format, ap);
-    va_end(ap);
-
-    char buf[len+1];
-    va_start(ap, format);
-    vsnprintf(buf, len+1, format, ap);
-    va_end(ap);
-
-    return qd_entity_set_string(entity, attribute, buf);
-}
diff --git a/src/entity.h b/src/entity.h
index 6e22ef1..46f6618 100644
--- a/src/entity.h
+++ b/src/entity.h
@@ -76,9 +76,6 @@ struct pn_data_t *qd_entity_opt_map(qd_entity_t *entity, 
const char *attribute);
  */
 qd_error_t qd_entity_set_string(qd_entity_t *entity, const char* attribute, 
const char *value);
 
-/** Set a string valued attribute from a printf format */
-qd_error_t qd_entity_set_stringf(qd_entity_t *entity, const char* attribute, 
const char *format, ...);
-
 /** Set an integer valued attribute. */
 qd_error_t qd_entity_set_long(qd_entity_t *entity, const char* attribute, long 
value);
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to