Removed partial implementations of the __copy__ method of some Python

extension classes.  Copy constructors should be used to duplicate
objects.
This commit is contained in:
2010-05-09 18:21:36 +00:00
parent 2385c51360
commit 867419b290
6 changed files with 0 additions and 43 deletions

View File

@@ -70,18 +70,6 @@ static int SVertex___init__(BPy_SVertex *self, PyObject *args, PyObject *kwds)
return 0;
}
static PyObject * SVertex___copy__( BPy_SVertex *self ) {
BPy_SVertex *py_svertex;
py_svertex = (BPy_SVertex *) SVertex_Type.tp_new( &SVertex_Type, 0, 0 );
py_svertex->sv = self->sv->duplicate();
py_svertex->py_if0D.if0D = py_svertex->sv;
py_svertex->py_if0D.borrowed = 0;
return (PyObject *) py_svertex;
}
static char SVertex_normals___doc__[] =
".. method:: normals()\n"
"\n"
@@ -252,7 +240,6 @@ static PyObject *SVertex_AddFEdge( BPy_SVertex *self , PyObject *args) {
/*----------------------SVertex instance definitions ----------------------------*/
static PyMethodDef BPy_SVertex_methods[] = {
{"__copy__", ( PyCFunction ) SVertex___copy__, METH_NOARGS, "() Cloning method."},
{"normals", ( PyCFunction ) SVertex_normals, METH_NOARGS, SVertex_normals___doc__},
{"normalsSize", ( PyCFunction ) SVertex_normalsSize, METH_NOARGS, SVertex_normalsSize___doc__},
{"viewvertex", ( PyCFunction ) SVertex_viewvertex, METH_NOARGS, SVertex_viewvertex___doc__},