diff options
| author | Liam P. White <inkscapebrony@gmail.com> | 2015-02-25 00:22:08 +0000 |
|---|---|---|
| committer | Liam P. White <inkscapebrony@gmail.com> | 2015-02-25 00:22:08 +0000 |
| commit | df7828a7a8ba0b7e6c2dd892ca5f0a62ef718bf0 (patch) | |
| tree | 8e03cc5b9c89749e73a1281ee997da90b40694fc /src/factory.h | |
| parent | Translations. Hungarian translation update. (diff) | |
| download | inkscape-df7828a7a8ba0b7e6c2dd892ca5f0a62ef718bf0.tar.gz inkscape-df7828a7a8ba0b7e6c2dd892ca5f0a62ef718bf0.zip | |
create SPObject factory
(bzr r13939.1.1)
Diffstat (limited to 'src/factory.h')
| -rw-r--r-- | src/factory.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/factory.h b/src/factory.h index c1288b460..6b448064e 100644 --- a/src/factory.h +++ b/src/factory.h @@ -81,34 +81,6 @@ private: }; -struct NodeTraits { - static std::string get_type_string(Inkscape::XML::Node const &node) { - std::string name; - - switch (node.type()) { - case Inkscape::XML::TEXT_NODE: - name = "string"; - break; - - case Inkscape::XML::ELEMENT_NODE: { - char const *const sptype = node.attribute("sodipodi:type"); - - if (sptype) { - name = sptype; - } else { - name = node.name(); - } - break; - } - default: - name = ""; - break; - } - - return name; - } -}; - #endif /* |
