diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-01-22 00:40:16 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-01-24 02:03:05 +0000 |
| commit | 5ad493e6900f621284748fe50b3f60f67929ffc2 (patch) | |
| tree | 86dea7a1eac6e789a9c935f60afae6a9a9d87f80 /src/certificate_chain.cc | |
| parent | a266fc223ecb7a696fa9dc35422ef0264b1c3c40 (diff) | |
Fully indent PKL/CPL.
Diffstat (limited to 'src/certificate_chain.cc')
| -rw-r--r-- | src/certificate_chain.cc | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/certificate_chain.cc b/src/certificate_chain.cc index ebc3cc7f..353444fa 100644 --- a/src/certificate_chain.cc +++ b/src/certificate_chain.cc @@ -552,33 +552,6 @@ CertificateChain::root_to_leaf () const throw CertificateChainError ("certificate chain is not consistent"); } -static string -spaces (int n) -{ - string s = ""; - for (int i = 0; i < n; ++i) { - s += " "; - } - return s; -} - -static void -indent (xmlpp::Element* element, int initial) -{ - xmlpp::Node* last = 0; - BOOST_FOREACH (xmlpp::Node * n, element->get_children()) { - xmlpp::Element* e = dynamic_cast<xmlpp::Element*>(n); - if (e) { - element->add_child_text_before (e, "\n" + spaces(initial + 2)); - indent (e, initial + 2); - last = n; - } - } - if (last) { - element->add_child_text (last, "\n" + spaces(initial)); - } -} - /** Add a <Signer> and <ds:Signature> nodes to an XML node. * @param parent XML node to add to. * @param standard INTEROP or SMPTE. |
