summaryrefslogtreecommitdiff
path: root/src/lib/server.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-11-06 18:00:53 +0000
committerCarl Hetherington <cth@carlh.net>2013-11-06 18:00:53 +0000
commit7125d8ec2217ae874ce452602465f630f674e786 (patch)
treecb70ee80dbf446a797832ecc2ab2ffa542b00596 /src/lib/server.cc
parent59602b67d0637817a156b7bd0fc05f96fe41dee5 (diff)
Remove configuration of servers.
Diffstat (limited to 'src/lib/server.cc')
-rw-r--r--src/lib/server.cc30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/lib/server.cc b/src/lib/server.cc
index 2930e3c4b..1f3f61e42 100644
--- a/src/lib/server.cc
+++ b/src/lib/server.cc
@@ -59,36 +59,6 @@ using boost::optional;
using boost::lexical_cast;
using libdcp::Size;
-ServerDescription::ServerDescription (shared_ptr<const cxml::Node> node)
-{
- _host_name = node->string_child ("HostName");
- _threads = node->number_child<int> ("Threads");
-}
-
-void
-ServerDescription::as_xml (xmlpp::Node* root) const
-{
- root->add_child("HostName")->add_child_text (_host_name);
- root->add_child("Threads")->add_child_text (boost::lexical_cast<string> (_threads));
-}
-
-/** Create a server description from a string of metadata returned from as_metadata().
- * @param v Metadata.
- * @return ServerDescription, or 0.
- */
-optional<ServerDescription>
-ServerDescription::create_from_metadata (string v)
-{
- vector<string> b;
- split (b, v, is_any_of (" "));
-
- if (b.size() != 2) {
- return optional<ServerDescription> ();
- }
-
- return ServerDescription (b[0], atoi (b[1].c_str ()));
-}
-
Server::Server (shared_ptr<Log> log, bool verbose)
: _log (log)
, _verbose (verbose)