Skip to content

Commit f57c112

Browse files
committed
Refactor: libcrmcommon: Drop pcmk__xe_set_propv()
Nothing calls it anymore. Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
1 parent b27d13d commit f57c112

2 files changed

Lines changed: 0 additions & 29 deletions

File tree

include/crm/common/xml_element_internal.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,6 @@ void pcmk__xe_sort_attrs(xmlNode *xml);
8686
void pcmk__xe_set_id(xmlNode *xml, const char *format, ...)
8787
G_GNUC_PRINTF(2, 3);
8888

89-
void pcmk__xe_set_propv(xmlNode *xml, va_list pairs);
90-
9189
/*!
9290
* \internal
9391
* \brief Get first attribute of an XML element

lib/common/xml_element.c

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,33 +1109,6 @@ pcmk__xe_update_match(xmlNode *xml, xmlNode *update, uint32_t flags)
11091109
return ENXIO;
11101110
}
11111111

1112-
/*!
1113-
* \internal
1114-
* \brief Set a list of name/value pairs as attributes for an XML element
1115-
*
1116-
* \param[in,out] xml XML element
1117-
* \param[in] pairs <tt>NULL</tt>-terminated list of name/value pairs
1118-
*
1119-
* \note A \c NULL name terminates the arguments; a \c NULL value will be
1120-
* skipped.
1121-
*/
1122-
void
1123-
pcmk__xe_set_propv(xmlNode *xml, va_list pairs)
1124-
{
1125-
while (true) {
1126-
const char *name = NULL;
1127-
const char *value = NULL;
1128-
1129-
name = va_arg(pairs, const char *);
1130-
if (name == NULL) {
1131-
return;
1132-
}
1133-
1134-
value = va_arg(pairs, const char *);
1135-
pcmk__xe_set(xml, name, value);
1136-
}
1137-
}
1138-
11391112
int
11401113
pcmk__xe_foreach_child(xmlNode *xml, const char *child_element_name,
11411114
int (*handler)(xmlNode *xml, void *userdata),

0 commit comments

Comments
 (0)