From d9fa70561e9a3f1c1b23fd0ebcdf12e5fa279cce Mon Sep 17 00:00:00 2001 From: Robert Haschke Date: Wed, 16 Dec 2020 05:21:40 +0100 Subject: [PATCH] style: remove redundant instance->owned = true (#2723) which was just before set to True in instance->allocate_layout() --- include/pybind11/detail/class.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/pybind11/detail/class.h b/include/pybind11/detail/class.h index 65dad5a57..7fd74d42a 100644 --- a/include/pybind11/detail/class.h +++ b/include/pybind11/detail/class.h @@ -340,8 +340,6 @@ inline PyObject *make_new_instance(PyTypeObject *type) { // Allocate the value/holder internals: inst->allocate_layout(); - inst->owned = true; - return self; }