From b9828b6220729431a6c294abb72cba76e4e34313 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 24 Feb 2024 21:45:40 +0100 Subject: [PATCH] Remove unused method. --- src/util.cc | 14 -------------- src/util.h | 1 - 2 files changed, 15 deletions(-) diff --git a/src/util.cc b/src/util.cc index a920ce0e..01bc8dea 100644 --- a/src/util.cc +++ b/src/util.cc @@ -306,20 +306,6 @@ dcp::private_key_fingerprint (string key) } -xmlpp::Node * -dcp::find_child (xmlpp::Node const * node, string name) -{ - auto c = node->get_children (); - auto i = c.begin(); - while (i != c.end() && (*i)->get_name() != name) { - ++i; - } - - DCP_ASSERT (i != c.end ()); - return *i; -} - - string dcp::remove_urn_uuid (string raw) { diff --git a/src/util.h b/src/util.h index 585166e3..8c4e475c 100644 --- a/src/util.h +++ b/src/util.h @@ -126,7 +126,6 @@ extern void write_string_to_file(std::string const& string, boost::filesystem::p * @return SHA1 fingerprint of key */ extern std::string private_key_fingerprint (std::string key); -extern xmlpp::Node* find_child (xmlpp::Node const * node, std::string name); extern std::string openjpeg_version(); extern std::string spaces (int n); extern void indent (xmlpp::Element* element, int initial); -- 2.30.2