@@ -52,7 +52,6 @@ static upb_inttable ce_to_enumdesc_map_persistent;
52
52
// Global map from message/enum's proto fully-qualified name to corresponding
53
53
// wrapper Descriptor/EnumDescriptor instances.
54
54
static upb_strtable proto_to_desc_map_persistent ;
55
- static upb_strtable proto_to_enumdesc_map_persistent ;
56
55
static upb_strtable class_to_desc_map_persistent ;
57
56
58
57
upb_strtable reserved_names ;
@@ -215,24 +214,6 @@ DescriptorInternal* get_proto_desc(const char* proto) {
215
214
}
216
215
}
217
216
218
- void add_proto_enumdesc (const char * proto , EnumDescriptorInternal * desc ) {
219
- upb_strtable_insert2 (& proto_to_enumdesc_map_persistent , proto ,
220
- strlen (proto ), upb_value_ptr (desc ));
221
- }
222
-
223
- EnumDescriptorInternal * get_proto_enumdesc (const char * proto ) {
224
- upb_value v ;
225
- #ifndef NDEBUG
226
- v .ctype = UPB_CTYPE_PTR ;
227
- #endif
228
- if (!upb_strtable_lookupptr (& proto_to_enumdesc_map_persistent ,
229
- proto , strlen (proto ), & v )) {
230
- return NULL ;
231
- } else {
232
- return upb_value_getptr (v );
233
- }
234
- }
235
-
236
217
void add_class_desc (const char * klass , DescriptorInternal * desc ) {
237
218
upb_strtable_insert (& class_to_desc_map_persistent , klass ,
238
219
upb_value_ptr (desc ));
@@ -378,7 +359,6 @@ static initialize_persistent_descriptor_pool(TSRMLS_D) {
378
359
upb_inttable_init (& ce_to_desc_map_persistent , UPB_CTYPE_PTR );
379
360
upb_inttable_init (& ce_to_enumdesc_map_persistent , UPB_CTYPE_PTR );
380
361
upb_strtable_init (& proto_to_desc_map_persistent , UPB_CTYPE_PTR );
381
- upb_strtable_init (& proto_to_enumdesc_map_persistent , UPB_CTYPE_PTR );
382
362
upb_strtable_init (& class_to_desc_map_persistent , UPB_CTYPE_PTR );
383
363
384
364
internal_descriptor_pool_impl_init (& generated_pool_impl TSRMLS_CC );
@@ -459,7 +439,6 @@ static cleanup_persistent_descriptor_pool(TSRMLS_D) {
459
439
upb_inttable_uninit (& ce_to_desc_map_persistent );
460
440
upb_inttable_uninit (& ce_to_enumdesc_map_persistent );
461
441
upb_strtable_uninit (& proto_to_desc_map_persistent );
462
- upb_strtable_uninit (& proto_to_enumdesc_map_persistent );
463
442
upb_strtable_uninit (& class_to_desc_map_persistent );
464
443
}
465
444
0 commit comments