aboutsummaryrefslogtreecommitdiff
path: root/src/ProtocolBuffers/AbstractMessage.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ProtocolBuffers/AbstractMessage.cs')
-rw-r--r--src/ProtocolBuffers/AbstractMessage.cs22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/ProtocolBuffers/AbstractMessage.cs b/src/ProtocolBuffers/AbstractMessage.cs
index 0c898c70..13443b1c 100644
--- a/src/ProtocolBuffers/AbstractMessage.cs
+++ b/src/ProtocolBuffers/AbstractMessage.cs
@@ -40,7 +40,6 @@ using System.IO;
using System.Text;
using Google.ProtocolBuffers.Collections;
using Google.ProtocolBuffers.Descriptors;
-using Google.ProtocolBuffers.Serialization;
namespace Google.ProtocolBuffers
{
@@ -123,27 +122,6 @@ namespace Google.ProtocolBuffers
return TextFormat.PrintToString(this);
}
- public string ToJson()
- {
- JsonFormatWriter w = JsonFormatWriter.CreateInstance();
- w.WriteMessage(this);
- return w.ToString();
- }
-
- public string ToXml()
- {
- StringWriter w = new StringWriter(new StringBuilder(4096));
- XmlFormatWriter.CreateInstance(w).WriteMessage(this);
- return w.ToString();
- }
-
- public string ToXml(string rootElementName)
- {
- StringWriter w = new StringWriter(new StringBuilder(4096));
- XmlFormatWriter.CreateInstance(w).WriteMessage(rootElementName, this);
- return w.ToString();
- }
-
public override sealed void PrintTo(TextWriter writer)
{
TextFormat.Print(this, writer);