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 {{",