@@ -148,8 +148,7 @@ static PyDescriptorPool* PyDescriptorPool_NewWithUnderlay(
148148}
149149
150150static PyDescriptorPool* PyDescriptorPool_NewWithDatabase (
151- DescriptorDatabase* database,
152- bool use_deprecated_legacy_json_field_conflicts) {
151+ DescriptorDatabase* database) {
153152 PyDescriptorPool* cpool = _CreateDescriptorPool ();
154153 if (cpool == nullptr ) {
155154 return nullptr ;
@@ -164,11 +163,6 @@ static PyDescriptorPool* PyDescriptorPool_NewWithDatabase(
164163 pool = new DescriptorPool ();
165164 cpool->is_mutable = true ;
166165 }
167- if (use_deprecated_legacy_json_field_conflicts) {
168- PROTOBUF_IGNORE_DEPRECATION_START
169- pool->UseDeprecatedLegacyJsonFieldConflicts ();
170- PROTOBUF_IGNORE_DEPRECATION_STOP
171- }
172166 cpool->pool = pool;
173167 cpool->is_owned = true ;
174168
@@ -188,7 +182,6 @@ static PyDescriptorPool* PyDescriptorPool_NewWithDatabase(
188182// The public DescriptorPool constructor.
189183static PyObject* New (PyTypeObject* type,
190184 PyObject* args, PyObject* kwargs) {
191- int use_deprecated_legacy_json_field_conflicts = 0 ;
192185 static const char * kwlist[] = {" descriptor_db" , nullptr };
193186 PyObject* py_database = nullptr ;
194187 if (!PyArg_ParseTupleAndKeywords (args, kwargs, " |O" ,
@@ -200,7 +193,7 @@ static PyObject* New(PyTypeObject* type,
200193 database = new PyDescriptorDatabase (py_database);
201194 }
202195 return reinterpret_cast <PyObject*>(PyDescriptorPool_NewWithDatabase (
203- database, use_deprecated_legacy_json_field_conflicts ));
196+ database));
204197}
205198
206199static void Dealloc (PyObject* pself) {
0 commit comments