Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2010-05-09 22:21:36 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2010-05-09 22:21:36 +0400
commit867419b290a1c055801fe3f254186b7ba72fdea0 (patch)
treebc83ea1ead4a358dd0bf1701c3c0383833156026 /source/blender/freestyle/intern/python/Interface1D
parent2385c51360014f19e1d823b8009bd7772adac8d8 (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/Interface1D')
-rw-r--r--source/blender/freestyle/intern/python/Interface1D/BPy_FEdge.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/source/blender/freestyle/intern/python/Interface1D/BPy_FEdge.cpp b/source/blender/freestyle/intern/python/Interface1D/BPy_FEdge.cpp
index 5e4f9257afb..943b4fb5e46 100644
--- a/source/blender/freestyle/intern/python/Interface1D/BPy_FEdge.cpp
+++ b/source/blender/freestyle/intern/python/Interface1D/BPy_FEdge.cpp
@@ -72,19 +72,6 @@ static int FEdge___init__(BPy_FEdge *self, PyObject *args, PyObject *kwds)
return 0;
}
-
-static PyObject * FEdge___copy__( BPy_FEdge *self ) {
- BPy_FEdge *py_fe;
-
- py_fe = (BPy_FEdge *) FEdge_Type.tp_new( &FEdge_Type, 0, 0 );
-
- py_fe->fe = new FEdge( *(self->fe) );
- py_fe->py_if1D.if1D = py_fe->fe;
- py_fe->py_if1D.borrowed = 0;
-
- return (PyObject *) py_fe;
-}
-
static char FEdge_vertexA___doc__[] =
".. method:: vertexA()\n"
"\n"
@@ -359,7 +346,6 @@ static PyObject *FEdge_setSmooth( BPy_FEdge *self , PyObject *args) {
/*----------------------FEdge instance definitions ----------------------------*/
static PyMethodDef BPy_FEdge_methods[] = {
- {"__copy__", ( PyCFunction ) FEdge___copy__, METH_NOARGS, "() Cloning method."},
{"vertexA", ( PyCFunction ) FEdge_vertexA, METH_NOARGS, FEdge_vertexA___doc__},
{"vertexB", ( PyCFunction ) FEdge_vertexB, METH_NOARGS, FEdge_vertexB___doc__},
{"__getitem__", ( PyCFunction ) FEdge___getitem__, METH_VARARGS, "(int i) Returns the first SVertex if i=0, the seccond SVertex if i=1."},