diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2010-05-09 22:21:36 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2010-05-09 22:21:36 +0400 |
commit | 867419b290a1c055801fe3f254186b7ba72fdea0 (patch) | |
tree | bc83ea1ead4a358dd0bf1701c3c0383833156026 /source/blender/freestyle/intern/python/Interface0D/BPy_CurvePoint.cpp | |
parent | 2385c51360014f19e1d823b8009bd7772adac8d8 (diff) |
Removed partial implementations of the __copy__ method of some Python
extension classes. Copy constructors should be used to duplicate
objects.
Diffstat (limited to 'source/blender/freestyle/intern/python/Interface0D/BPy_CurvePoint.cpp')
-rw-r--r-- | source/blender/freestyle/intern/python/Interface0D/BPy_CurvePoint.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/source/blender/freestyle/intern/python/Interface0D/BPy_CurvePoint.cpp b/source/blender/freestyle/intern/python/Interface0D/BPy_CurvePoint.cpp index 35f8c82f794..dd1f4a2efba 100644 --- a/source/blender/freestyle/intern/python/Interface0D/BPy_CurvePoint.cpp +++ b/source/blender/freestyle/intern/python/Interface0D/BPy_CurvePoint.cpp @@ -100,18 +100,6 @@ static int CurvePoint___init__(BPy_CurvePoint *self, PyObject *args, PyObject *k return 0; } -static PyObject * CurvePoint___copy__( BPy_CurvePoint *self ) { - BPy_CurvePoint *py_cp; - - py_cp = (BPy_CurvePoint *) CurvePoint_Type.tp_new( &CurvePoint_Type, 0, 0 ); - - py_cp->cp = new CurvePoint( *(self->cp) ); - py_cp->py_if0D.if0D = py_cp->cp; - py_cp->py_if0D.borrowed = 0; - - return (PyObject *) py_cp; -} - static char CurvePoint_A___doc__[] = ".. method:: A()\n" "\n" @@ -229,7 +217,6 @@ static PyObject *CurvePoint_curvatureFredo( BPy_CurvePoint *self , PyObject *arg /*----------------------CurvePoint instance definitions ----------------------------*/ static PyMethodDef BPy_CurvePoint_methods[] = { - {"__copy__", ( PyCFunction ) CurvePoint___copy__, METH_NOARGS, "() Cloning method."}, {"A", ( PyCFunction ) CurvePoint_A, METH_NOARGS, CurvePoint_A___doc__}, {"B", ( PyCFunction ) CurvePoint_B, METH_NOARGS, CurvePoint_B___doc__}, {"t2d", ( PyCFunction ) CurvePoint_t2d, METH_NOARGS, CurvePoint_t2d___doc__}, |