From ec424a57e872642ab1509525aeb73a835d6db95a Mon Sep 17 00:00:00 2001 From: Jonathan L Long Date: Mon, 10 Mar 2014 22:04:46 -0700 Subject: [PATCH] Remove spurious constructors from CaffeBlob and CaffeBlobWrap This prevents accidental construction of partially-specified blobs, which could break the Python layer. --- python/caffe/_caffe.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/python/caffe/_caffe.cpp b/python/caffe/_caffe.cpp index c2a2618..70edc8f 100644 --- a/python/caffe/_caffe.cpp +++ b/python/caffe/_caffe.cpp @@ -38,12 +38,6 @@ class CaffeBlob { CaffeBlob(const shared_ptr > &blob, const string& name) : blob_(blob), name_(name) {} - explicit CaffeBlob(const shared_ptr > &blob) - : blob_(blob) {} - - CaffeBlob() - {} - string name() const { return name_; } int num() const { return blob_->num(); } int channels() const { return blob_->channels(); } @@ -66,9 +60,6 @@ class CaffeBlob { // is not freed while still being used in Python class CaffeBlobWrap : public CaffeBlob { public: - CaffeBlobWrap(PyObject *p, const shared_ptr > &blob) - : CaffeBlob(blob), self_(p) {} - CaffeBlobWrap(PyObject *p, const CaffeBlob &blob) : CaffeBlob(blob), self_(p) {} -- 2.7.4