File tree 1 file changed +0
-6
lines changed
1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -273,12 +273,10 @@ struct smart_holder_type_caster_class_hooks : smart_holder_type_caster_base_tag
273
273
274
274
using holder_type = pybindit::memory::smart_holder;
275
275
276
- #ifdef JUNK
277
276
template <typename WrappedType>
278
277
static bool try_initialization_using_shared_from_this (holder_type *, WrappedType *, ...) {
279
278
return false ;
280
279
}
281
- #endif
282
280
283
281
#ifdef JUNK
284
282
template <typename WrappedType, typename AnyBaseOfWrappedType>
@@ -312,22 +310,18 @@ struct smart_holder_type_caster_class_hooks : smart_holder_type_caster_base_tag
312
310
auto holder_ptr = static_cast <holder_type *>(holder_void_ptr);
313
311
new (std::addressof (v_h.holder <holder_type>())) holder_type (std::move (*holder_ptr));
314
312
} else {
315
- #ifdef JUNK
316
313
if (!try_initialization_using_shared_from_this (
317
314
std::addressof (v_h.holder <holder_type>()),
318
315
v_h.value_ptr <WrappedType>(),
319
316
v_h.value_ptr <WrappedType>())) {
320
- #endif
321
317
if (inst->owned ) {
322
318
new (std::addressof (v_h.holder <holder_type>())) holder_type (
323
319
holder_type::from_raw_ptr_take_ownership (v_h.value_ptr <WrappedType>()));
324
320
} else {
325
321
new (std::addressof (v_h.holder <holder_type>())) holder_type (
326
322
holder_type::from_raw_ptr_unowned (v_h.value_ptr <WrappedType>()));
327
323
}
328
- #ifdef JUNK
329
324
}
330
- #endif
331
325
}
332
326
v_h.holder <holder_type>().pointee_depends_on_holder_owner
333
327
= dynamic_raw_ptr_cast_if_possible<AliasType>(v_h.value_ptr <WrappedType>()) != nullptr ;
You can’t perform that action at this time.
0 commit comments