Skip to content

Commit d9fa705

Browse files
authored
style: remove redundant instance->owned = true (#2723)
which was just before set to True in instance->allocate_layout()
1 parent ffb113d commit d9fa705

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

include/pybind11/detail/class.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,6 @@ inline PyObject *make_new_instance(PyTypeObject *type) {
340340
// Allocate the value/holder internals:
341341
inst->allocate_layout();
342342

343-
inst->owned = true;
344-
345343
return self;
346344
}
347345

0 commit comments

Comments
 (0)