remove unused GetLayer function (replaced by LayerRegistry::CreateLayer)
authorJonathan L Long <jonlong@cs.berkeley.edu>
Mon, 29 Dec 2014 02:03:45 +0000 (18:03 -0800)
committerJonathan L Long <jonlong@cs.berkeley.edu>
Mon, 29 Dec 2014 02:03:45 +0000 (18:03 -0800)
include/caffe/layer_factory.hpp

index b86d533..c1fd6aa 100644 (file)
@@ -113,17 +113,6 @@ class LayerRegisterer {
   }                                                                            \
   REGISTER_LAYER_CREATOR(type, Creator_##clsname)
 
-// A function to get a specific layer from the specification given in
-// LayerParameter. Ideally this would be replaced by a factory pattern,
-// but we will leave it this way for now.
-// Yangqing's note: With LayerRegistry, we no longer need this thin wrapper any
-// more. It is provided here for backward compatibility and should be removed in
-// the future.
-template <typename Dtype>
-Layer<Dtype>* GetLayer(const LayerParameter& param) {
-  return LayerRegistry<Dtype>::CreateLayer(param);
-}
-
 }  // namespace caffe
 
 #endif  // CAFFE_LAYER_FACTORY_H_