Skip to content

Commit dead64c

Browse files
mhansencopybara-github
authored andcommitted
Remove unused method com.google.protobuf.Protobuf.getTotalSchemaSize()
There appear to be no callers of this. I'm removing this in preparation to try to offer a more performant java.lang.ClassValue replacement for the ConcurrentHashMap. Removing this method means I don't have to reimplement it for ClassValue. PiperOrigin-RevId: 814272309
1 parent ec3c8a7 commit dead64c

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

java/core/src/main/java/com/google/protobuf/Protobuf.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,4 @@ public Schema<?> registerSchemaOverride(Class<?> messageType, Schema<?> schema)
115115
private Protobuf() {
116116
schemaFactory = new ManifestSchemaFactory();
117117
}
118-
119-
int getTotalSchemaSize() {
120-
int result = 0;
121-
for (Schema<?> schema : schemaCache.values()) {
122-
if (schema instanceof MessageSchema) {
123-
result += ((MessageSchema) schema).getSchemaSize();
124-
}
125-
}
126-
return result;
127-
}
128118
}

0 commit comments

Comments
 (0)