From 8d1705b1dd8623c536825858c393c5fc264acb5d Mon Sep 17 00:00:00 2001 From: Russell Greene Date: Sun, 11 Dec 2022 14:20:53 -0600 Subject: [PATCH] fixup! Add UniquePtr::to_shared and SharedPtr::from_unmanaged --- gen/src/write.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/gen/src/write.rs b/gen/src/write.rs index 1222eff33..bdcb8960e 100644 --- a/gen/src/write.rs +++ b/gen/src/write.rs @@ -1803,18 +1803,6 @@ fn write_shared_ptr(out: &mut OutFile, key: NamedImplKey) { ); writeln!(out, "}}"); begin_function_definition(out); - writeln!( - out, - "void cxxbridge1$shared_ptr${}$from_unmanaged(::std::shared_ptr<{}>* ptr, void* data) noexcept {{", - instance, inner, - ); - writeln!( - out, - "new (ptr) std::shared_ptr<{}>(static_cast<{}*>(data));", - inner, inner - ); - writeln!(out, "}}"); - begin_function_definition(out); writeln!( out, "void cxxbridge1$shared_ptr${}$clone(::std::shared_ptr<{}> const &self, ::std::shared_ptr<{}> *ptr) noexcept {{",