Skip to content

Commit bee504d

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

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
@@ -1141,33 +1141,6 @@ pcmk__xe_update_match(xmlNode *xml, xmlNode *update, uint32_t flags)
11411141
return ENXIO;
11421142
}
11431143

1144-
/*!
1145-
* \internal
1146-
* \brief Set a list of name/value pairs as attributes for an XML element
1147-
*
1148-
* \param[in,out] xml XML element
1149-
* \param[in] pairs <tt>NULL</tt>-terminated list of name/value pairs
1150-
*
1151-
* \note A \c NULL name terminates the arguments; a \c NULL value will be
1152-
* skipped.
1153-
*/
1154-
void
1155-
pcmk__xe_set_propv(xmlNode *xml, va_list pairs)
1156-
{
1157-
while (true) {
1158-
const char *name = NULL;
1159-
const char *value = NULL;
1160-
1161-
name = va_arg(pairs, const char *);
1162-
if (name == NULL) {
1163-
return;
1164-
}
1165-
1166-
value = va_arg(pairs, const char *);
1167-
pcmk__xe_set(xml, name, value);
1168-
}
1169-
}
1170-
11711144
int
11721145
pcmk__xe_foreach_child(xmlNode *xml, const char *child_element_name,
11731146
int (*handler)(xmlNode *xml, void *userdata),

0 commit comments

Comments
 (0)