From: Arthur Cohen <arthur.co...@embecosm.com>

gcc/rust/ChangeLog:

        * expand/rust-derive-debug.cc (ptrify): Remove function.
---
 gcc/rust/expand/rust-derive-debug.cc | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/gcc/rust/expand/rust-derive-debug.cc 
b/gcc/rust/expand/rust-derive-debug.cc
index f37547459a0..7ad3908483a 100644
--- a/gcc/rust/expand/rust-derive-debug.cc
+++ b/gcc/rust/expand/rust-derive-debug.cc
@@ -38,14 +38,6 @@ DeriveDebug::go (Item &item)
   return std::move (expanded);
 }
 
-/* Pointer-ify something */
-template <typename T>
-static std::unique_ptr<T>
-ptrify (T value)
-{
-  return std::unique_ptr<T> (new T (value));
-}
-
 std::unique_ptr<AssociatedItem>
 DeriveDebug::stub_debug_fn ()
 {
-- 
2.45.2

Reply via email to