Remove unused field MessageSchema.syntax

Last usage was removed in cl/541925703

PiperOrigin-RevId: 658600553
pull/17641/head
Mark Hansen 6 months ago committed by Copybara-Service
parent 910f62779f
commit 621f2a2786
  1. 5
      java/core/src/main/java/com/google/protobuf/MessageSchema.java

@ -152,7 +152,6 @@ final class MessageSchema<T> implements Schema<T> {
private final MessageLite defaultInstance;
private final boolean hasExtensions;
private final boolean lite;
private final ProtoSyntax syntax;
// TODO: Make both full-runtime and lite-runtime support cached field size.
private final boolean useCachedSizeField;
@ -183,7 +182,6 @@ final class MessageSchema<T> implements Schema<T> {
int minFieldNumber,
int maxFieldNumber,
MessageLite defaultInstance,
ProtoSyntax syntax,
boolean useCachedSizeField,
int[] intArray,
int checkInitialized,
@ -199,7 +197,6 @@ final class MessageSchema<T> implements Schema<T> {
this.maxFieldNumber = maxFieldNumber;
this.lite = defaultInstance instanceof GeneratedMessageLite;
this.syntax = syntax;
this.hasExtensions = extensionSchema != null && extensionSchema.hasExtensions(defaultInstance);
this.useCachedSizeField = useCachedSizeField;
@ -585,7 +582,6 @@ final class MessageSchema<T> implements Schema<T> {
minFieldNumber,
maxFieldNumber,
messageInfo.getDefaultInstance(),
messageInfo.getSyntax(),
/* useCachedSizeField= */ false,
intArray,
checkInitialized,
@ -724,7 +720,6 @@ final class MessageSchema<T> implements Schema<T> {
minFieldNumber,
maxFieldNumber,
messageInfo.getDefaultInstance(),
messageInfo.getSyntax(),
/* useCachedSizeField= */ true,
combined,
checkInitialized.length,

Loading…
Cancel
Save