summaryrefslogtreecommitdiff
path: root/src/lib/util.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-12-19 22:47:37 +0100
committerCarl Hetherington <cth@carlh.net>2025-09-03 10:43:43 +0200
commita55f7fa11991d222251a2a50f9349d8dbeed5ed7 (patch)
treebc004308c7a2d9d32987624bb10d9e8503e7d86e /src/lib/util.h
parent32f606385df561d018e206afe2be0014ac40a812 (diff)
Move number_attribute() to xml_util.h
Diffstat (limited to 'src/lib/util.h')
-rw-r--r--src/lib/util.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/lib/util.h b/src/lib/util.h
index 846059e1a..a3a384847 100644
--- a/src/lib/util.h
+++ b/src/lib/util.h
@@ -32,7 +32,6 @@
#include "dcpomatic_time.h"
#include "pixel_quanta.h"
#include "types.h"
-#include <libcxml/cxml.h>
#include <dcp/atmos_asset.h>
#include <dcp/decrypted_kdm.h>
#include <dcp/util.h>
@@ -103,18 +102,6 @@ extern std::string rfc_2822_date(time_t time);
bool paths_exist(std::vector<boost::filesystem::path> const& paths);
std::function<AVPixelFormat (AVPixelFormat)> force(AVPixelFormat format);
-
-template <class T>
-T
-number_attribute(cxml::ConstNodePtr node, std::string name1, std::string name2)
-{
- auto value = node->optional_number_attribute<T>(name1);
- if (!value) {
- value = node->number_attribute<T>(name2);
- }
- return *value;
-}
-
extern std::string screen_names_to_string(std::vector<std::string> names);
extern std::string report_problem();