diff --git a/indra/llplugin/llpluginmessage.cpp b/indra/llplugin/llpluginmessage.cpp
index ea0d1a5a36025394d712ac9ddcf912a5f85b2018..ba15bbd931ec187082f6214d3d07bb4ac8dfada6 100644
--- a/indra/llplugin/llpluginmessage.cpp
+++ b/indra/llplugin/llpluginmessage.cpp
@@ -367,14 +367,7 @@ int LLPluginMessage::parse(const std::string &message)
 	clear();
 
 	boost::iostreams::stream<boost::iostreams::array_source> input(message.data(), message.size());
-#if LL_DEBUG
-	S32 parse_result = LLSDSerialize::fromXML(mMessage, input);
-#else
-	S32 parse_result = LLSDSerialize::fromXMLDocument(mMessage, input);
-#endif
-
-
-	return (int)parse_result;
+	return LLSDSerialize::fromXML(mMessage, input);
 }