remove superfluous empty destructors
authorJonathan L Long <jonlong@cs.berkeley.edu>
Thu, 14 May 2015 05:08:57 +0000 (22:08 -0700)
committerJonathan L Long <jonlong@cs.berkeley.edu>
Thu, 14 May 2015 05:08:57 +0000 (22:08 -0700)
The removed definitions do nothing; these classes already have virtual
destructors inherited from their respective base classes.

include/caffe/data_layers.hpp

index 2bb9d94..4dcf550 100644 (file)
@@ -29,7 +29,6 @@ template <typename Dtype>
 class BaseDataLayer : public Layer<Dtype> {
  public:
   explicit BaseDataLayer(const LayerParameter& param);
-  virtual ~BaseDataLayer() {}
   // LayerSetUp: implements common data layer setup functionality, and calls
   // DataLayerSetUp to do special data layer setup for individual layer types.
   // This method may not be overridden except by the BasePrefetchingDataLayer.
@@ -58,7 +57,6 @@ class BasePrefetchingDataLayer :
  public:
   explicit BasePrefetchingDataLayer(const LayerParameter& param)
       : BaseDataLayer<Dtype>(param) {}
-  virtual ~BasePrefetchingDataLayer() {}
   // LayerSetUp: implements common data layer setup functionality, and calls
   // DataLayerSetUp to do special data layer setup for individual layer types.
   // This method may not be overridden.