diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-10-31 21:22:13 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-10-31 21:22:13 +0000 |
commit | cd40526d5c1b45d766698b710bf7ed597246ad14 (patch) | |
tree | 135f9b659c54a003cb116cbdcf644a501d6f1b9e | |
parent | Simplify GetTypeId without enable_if (diff) | |
download | slicer-cd40526d5c1b45d766698b710bf7ed597246ad14.tar.bz2 slicer-cd40526d5c1b45d766698b710bf7ed597246ad14.tar.xz slicer-cd40526d5c1b45d766698b710bf7ed597246ad14.zip |
Remove some unused stuff
-rw-r--r-- | slicer/xml/serializer.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/slicer/xml/serializer.cpp b/slicer/xml/serializer.cpp index bc87e4c..9bae723 100644 --- a/slicer/xml/serializer.cpp +++ b/slicer/xml/serializer.cpp @@ -15,8 +15,6 @@ NAMEDFACTORY("application/xml", Slicer::XmlStreamSerializer, Slicer::StreamSeria NAMEDFACTORY("application/xml", Slicer::XmlStreamDeserializer, Slicer::StreamDeserializerFactory); namespace Slicer { - using namespace std::placeholders; - constexpr std::string_view md_attribute {"xml:attribute"}; constexpr std::string_view md_text {"xml:text"}; constexpr std::string_view md_bare {"xml:bare"}; @@ -24,8 +22,8 @@ namespace Slicer { constexpr std::string_view md_elements {"xml:elements"}; constexpr std::string_view keyName {"key"}; constexpr std::string_view valueName {"value"}; - using ElementCreatorF = xmlpp::Element * (xmlpp::Element::*)(const Glib::ustring &, const Glib::ustring &); - const auto defaultElementCreator = [](auto && element, auto && name) { + + constexpr auto defaultElementCreator = [](auto && element, auto && name) { return element->add_child_element(name); }; |