From b91d0ab112720b3354314b58914d7c1054695251 Mon Sep 17 00:00:00 2001 From: Jonathan L Long Date: Sun, 28 Dec 2014 18:03:45 -0800 Subject: [PATCH] remove unused GetLayer function (replaced by LayerRegistry::CreateLayer) --- include/caffe/layer_factory.hpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/include/caffe/layer_factory.hpp b/include/caffe/layer_factory.hpp index b86d533..c1fd6aa 100644 --- a/include/caffe/layer_factory.hpp +++ b/include/caffe/layer_factory.hpp @@ -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 -Layer* GetLayer(const LayerParameter& param) { - return LayerRegistry::CreateLayer(param); -} - } // namespace caffe #endif // CAFFE_LAYER_FACTORY_H_ -- 2.7.4