From 40b7e57fc1c8fe91f2d9bf9e157d07a8a24edd5e Mon Sep 17 00:00:00 2001
From: scott snyder <scott.snyder@cern.ch>
Date: Thu, 15 Nov 2018 22:27:10 +0100
Subject: [PATCH] StoreGateBindings: Remove DataBucketBase::clone().

DataBucketBase::clone() doesn't appear to be used anywhere.
---
 Control/StoreGateBindings/src/SgPyDataModel.cxx | 12 +-----------
 Control/StoreGateBindings/src/SgPyDataModel.h   |  8 +-------
 2 files changed, 2 insertions(+), 18 deletions(-)

diff --git a/Control/StoreGateBindings/src/SgPyDataModel.cxx b/Control/StoreGateBindings/src/SgPyDataModel.cxx
index 43d18df8b4..ff1efe9039 100644
--- a/Control/StoreGateBindings/src/SgPyDataModel.cxx
+++ b/Control/StoreGateBindings/src/SgPyDataModel.cxx
@@ -1,5 +1,5 @@
 /*
-  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
+  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
 */
 
 
@@ -145,16 +145,6 @@ namespace SG {
     return 0;
   }
 
-  PyDataBucket* PyDataBucket::clone() const
-  { 
-    PyErr_SetString
-      ( PyExc_RuntimeError, 
-	"SG::PyDataBucket::clone() is not meant to be called (yet)" );
-    std::abort();
-    return 0;
-//     new SG::PyDataBucket( m_type, copy<>(m_pyObj), m_clid );
-  }
-
   void PyDataBucket::lock()
   {
     RootUtils::PyGILStateEnsure gil;
diff --git a/Control/StoreGateBindings/src/SgPyDataModel.h b/Control/StoreGateBindings/src/SgPyDataModel.h
index a13472a2be..8bf568b652 100644
--- a/Control/StoreGateBindings/src/SgPyDataModel.h
+++ b/Control/StoreGateBindings/src/SgPyDataModel.h
@@ -1,7 +1,7 @@
 // -*- C++ -*-
 
 /*
-  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
+  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
 */
 
 #ifndef STOREGATEBINDINGS_SGPYDATAMODEL_H
@@ -147,12 +147,6 @@ namespace SG {
       return m_bib->typeinfo();
     }
 
-    /**
-     * @brief Return a new @c DataBucket whose payload has been cloned from the
-     *        original one.
-     */
-    virtual SG::PyDataBucket* clone() const override;
-
     /**
      * @brief Give up ownership of the  @c DataBucket contents.
      */
-- 
GitLab