summaryrefslogtreecommitdiffstats
path: root/src/uscxml/messages/Event.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/uscxml/messages/Event.cpp')
-rw-r--r--src/uscxml/messages/Event.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/uscxml/messages/Event.cpp b/src/uscxml/messages/Event.cpp
index 43c6600..fda24dd 100644
--- a/src/uscxml/messages/Event.cpp
+++ b/src/uscxml/messages/Event.cpp
@@ -72,29 +72,6 @@ Arabica::DOM::Document<std::string> Event::toDocument() {
return document;
}
-void Event::initContent(const std::string& content) {
- // try to parse as JSON
- Data json = Data::fromJSON(content);
- if (!json.empty()) {
- data = json;
- return;
- }
-
- // try to parse as XML
- Arabica::SAX2DOM::Parser<std::string> parser;
- Arabica::SAX::CatchErrorHandler<std::string> errorHandler;
- parser.setErrorHandler(errorHandler);
-
- std::istringstream is(content);
- Arabica::SAX::InputSource<std::string> inputSource;
- inputSource.setByteStream(is);
- if (parser.parse(inputSource)) {
- dom = parser.getDocument();
- return;
- }
-
- this->content = content;
-}
Event Event::fromXML(const std::string& xmlString) {
Arabica::SAX2DOM::Parser<std::string> eventParser;