HomeClusterLabs Projects

Refactor: libcrmcommon: Drop redundant check from mark_child_deleted()
bb566e7a5bdaUnpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Refactor: libcrmcommon: Drop redundant check from mark_child_deleted()

mark_child_deleted() has only one caller (mark_xml_changes()). By the
time we reach this point, we can be sure that match_xml(new_parent,
old_child) will return NULL, because we checked it in the caller.

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Mar 15 2025, 7:00 PM
Parents
rP61ad92b2f2b1: Refactor: libcrmcommon: Make pcmk__xml_match() static
Branches
Unknown
Tags
Unknown

Event Timeline