diff options
Diffstat (limited to 'src/ProtocolBuffers/GeneratedMessage.cs')
-rw-r--r-- | src/ProtocolBuffers/GeneratedMessage.cs | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/ProtocolBuffers/GeneratedMessage.cs b/src/ProtocolBuffers/GeneratedMessage.cs index 8147a88b..ce755bed 100644 --- a/src/ProtocolBuffers/GeneratedMessage.cs +++ b/src/ProtocolBuffers/GeneratedMessage.cs @@ -42,7 +42,6 @@ using System.Xml; using Google.ProtocolBuffers.Collections;
using Google.ProtocolBuffers.Descriptors;
using Google.ProtocolBuffers.FieldAccess;
-using Google.ProtocolBuffers.Serialization;
namespace Google.ProtocolBuffers
{
@@ -178,42 +177,5 @@ namespace Google.ProtocolBuffers {
unknownFields = fieldSet;
}
-
- public static TMessage ParseFromJson(string jsonText)
- {
- return JsonFormatReader.CreateInstance(jsonText)
- .Merge(new TBuilder())
- .Build();
- }
-
- public static TMessage ParseFromJson(TextReader reader)
- {
- return ParseFromJson(reader, ExtensionRegistry.Empty);
- }
-
- public static TMessage ParseFromJson(TextReader reader, ExtensionRegistry extensionRegistry)
- {
- return JsonFormatReader.CreateInstance(reader)
- .Merge(new TBuilder(), extensionRegistry)
- .Build();
- }
-
- public static TMessage ParseFromXml(XmlReader reader)
- {
- return ParseFromXml(XmlFormatReader.DefaultRootElementName, reader, ExtensionRegistry.Empty);
- }
-
- public static TMessage ParseFromXml(string rootElementName, XmlReader reader)
- {
- return ParseFromXml(rootElementName, reader, ExtensionRegistry.Empty);
- }
-
- public static TMessage ParseFromXml(string rootElementName, XmlReader reader,
- ExtensionRegistry extensionRegistry)
- {
- return XmlFormatReader.CreateInstance(reader)
- .Merge(rootElementName, new TBuilder(), extensionRegistry)
- .Build();
- }
}
}
\ No newline at end of file |