From 9b84debc374f426bb3a00baa82bae5fdd88a018e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 22 Aug 2012 00:11:18 +0100 Subject: Some maths operations with Time. --- src/xml.cc | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/xml.cc') diff --git a/src/xml.cc b/src/xml.cc index b9ee56a8..35c4fe12 100644 --- a/src/xml.cc +++ b/src/xml.cc @@ -126,13 +126,7 @@ XMLNode::ignore_node (string name) Time XMLNode::time_attribute (string name) { - string const t = string_attribute (name); - - vector b; - boost::split (b, t, is_any_of (":")); - assert (b.size() == 4); - - return Time (lexical_cast (b[0]), lexical_cast (b[1]), lexical_cast (b[2]), lexical_cast (b[3])); + return Time (string_attribute (name)); } string -- cgit v1.2.3