Skip to content

Commit f8f1dcf

Browse files
committed
Cleanup
1 parent fe87c0e commit f8f1dcf

20 files changed

+0
-114
lines changed

src/BSON/Binary.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,6 @@ static void php_phongo_binary_free_object(zend_object* object)
212212
if (intern->data) {
213213
efree(intern->data);
214214
}
215-
216-
if (intern->properties) {
217-
zend_hash_destroy(intern->properties);
218-
FREE_HASHTABLE(intern->properties);
219-
}
220215
}
221216

222217
static zend_object* php_phongo_binary_create_object(zend_class_entry* class_type)

src/BSON/DBPointer.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,6 @@ static void php_phongo_dbpointer_free_object(zend_object* object)
175175
if (intern->ref) {
176176
efree(intern->ref);
177177
}
178-
179-
if (intern->properties) {
180-
zend_hash_destroy(intern->properties);
181-
FREE_HASHTABLE(intern->properties);
182-
}
183178
}
184179

185180
zend_object* php_phongo_dbpointer_create_object(zend_class_entry* class_type)

src/BSON/Decimal128.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,6 @@ static void php_phongo_decimal128_free_object(zend_object* object)
167167
php_phongo_decimal128_t* intern = Z_OBJ_DECIMAL128(object);
168168

169169
zend_object_std_dtor(&intern->std);
170-
171-
if (intern->properties) {
172-
zend_hash_destroy(intern->properties);
173-
FREE_HASHTABLE(intern->properties);
174-
}
175170
}
176171

177172
static zend_object* php_phongo_decimal128_create_object(zend_class_entry* class_type)

src/BSON/Document.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -445,11 +445,6 @@ static void php_phongo_document_free_object(zend_object* object)
445445
if (intern->bson) {
446446
bson_destroy(intern->bson);
447447
}
448-
449-
if (intern->properties) {
450-
zend_hash_destroy(intern->properties);
451-
FREE_HASHTABLE(intern->properties);
452-
}
453448
}
454449

455450
static zend_object* php_phongo_document_create_object(zend_class_entry* class_type)

src/BSON/Int64.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,6 @@ static void php_phongo_int64_free_object(zend_object* object)
174174
php_phongo_int64_t* intern = Z_OBJ_INT64(object);
175175

176176
zend_object_std_dtor(&intern->std);
177-
178-
if (intern->properties) {
179-
zend_hash_destroy(intern->properties);
180-
FREE_HASHTABLE(intern->properties);
181-
}
182177
}
183178

184179
zend_object* php_phongo_int64_create_object(zend_class_entry* class_type)

src/BSON/Iterator.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,6 @@ static void php_phongo_iterator_free_object(zend_object* object)
248248

249249
zend_object_std_dtor(&intern->std);
250250

251-
if (intern->properties) {
252-
zend_hash_destroy(intern->properties);
253-
FREE_HASHTABLE(intern->properties);
254-
}
255-
256251
php_phongo_iterator_free_current(intern);
257252

258253
zval_ptr_dtor(&intern->bson);

src/BSON/Javascript.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -257,11 +257,6 @@ static void php_phongo_javascript_free_object(zend_object* object)
257257
bson_destroy(intern->scope);
258258
intern->scope = NULL;
259259
}
260-
261-
if (intern->properties) {
262-
zend_hash_destroy(intern->properties);
263-
FREE_HASHTABLE(intern->properties);
264-
}
265260
}
266261

267262
zend_object* php_phongo_javascript_create_object(zend_class_entry* class_type)

src/BSON/ObjectId.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,6 @@ static void php_phongo_objectid_free_object(zend_object* object)
201201
php_phongo_objectid_t* intern = Z_OBJ_OBJECTID(object);
202202

203203
zend_object_std_dtor(&intern->std);
204-
205-
if (intern->properties) {
206-
zend_hash_destroy(intern->properties);
207-
FREE_HASHTABLE(intern->properties);
208-
}
209204
}
210205

211206
static zend_object* php_phongo_objectid_create_object(zend_class_entry* class_type)

src/BSON/PackedArray.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -429,11 +429,6 @@ static void php_phongo_packedarray_free_object(zend_object* object)
429429
if (intern->bson) {
430430
bson_destroy(intern->bson);
431431
}
432-
433-
if (intern->properties) {
434-
zend_hash_destroy(intern->properties);
435-
FREE_HASHTABLE(intern->properties);
436-
}
437432
}
438433

439434
static zend_object* php_phongo_packedarray_create_object(zend_class_entry* class_type)

src/BSON/Regex.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -227,11 +227,6 @@ static void php_phongo_regex_free_object(zend_object* object)
227227
if (intern->flags) {
228228
efree(intern->flags);
229229
}
230-
231-
if (intern->properties) {
232-
zend_hash_destroy(intern->properties);
233-
FREE_HASHTABLE(intern->properties);
234-
}
235230
}
236231

237232
static zend_object* php_phongo_regex_create_object(zend_class_entry* class_type)

0 commit comments

Comments
 (0)