diff --git a/Lib/swig.swg b/Lib/swig.swg index 531c3412d..34b6b8d6d 100644 --- a/Lib/swig.swg +++ b/Lib/swig.swg @@ -340,21 +340,6 @@ public: private: SwigValueWrapper& operator=(const SwigValueWrapper& rhs); }; - -template class SwigValueWrapper { - T *tt; -public: - SwigValueWrapper() : tt(0) { } - SwigValueWrapper(const SwigValueWrapper& rhs) : tt(new T(*rhs.tt)) { } - SwigValueWrapper(const T& t) : tt(new T(t)) { } - ~SwigValueWrapper() { delete tt; } - SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } - operator T&() const { return *tt; } - T *operator&() { return tt; } -private: - SwigValueWrapper& operator=(const SwigValueWrapper& rhs); -}; - #endif %} #endif