summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/config.cc24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/lib/config.cc b/src/lib/config.cc
index 40a9f355f..669ea4e21 100644
--- a/src/lib/config.cc
+++ b/src/lib/config.cc
@@ -1183,30 +1183,6 @@ Config::write_config() const
}
-template <class T>
-void
-write_file(string root_node, string node, string version, list<shared_ptr<T>> things, boost::filesystem::path file)
-{
- xmlpp::Document doc;
- auto root = doc.create_root_node(root_node);
- cxml::add_text_child(root, "Version", version);
-
- for (auto i: things) {
- i->as_xml(cxml::add_child(root, node));
- }
-
- try {
- doc.write_to_file_formatted(file.string() + ".tmp");
- dcp::filesystem::remove(file);
- dcp::filesystem::rename(file.string() + ".tmp", file);
- } catch (xmlpp::exception& e) {
- string s = e.what();
- trim(s);
- throw FileError(s, file);
- }
-}
-
-
boost::filesystem::path
Config::default_directory_or(boost::filesystem::path a) const
{