mirror of https://github.com/go-python/gopy.git
bind: cleanups
This commit is contained in:
parent
4a098ea7a8
commit
0bb7490204
|
@ -386,19 +386,6 @@ func (g *cpyGen) genStructMembers(cpy Struct) {
|
||||||
g.impl.Printf("{NULL} /* Sentinel */\n")
|
g.impl.Printf("{NULL} /* Sentinel */\n")
|
||||||
g.impl.Outdent()
|
g.impl.Outdent()
|
||||||
g.impl.Printf("};\n\n")
|
g.impl.Printf("};\n\n")
|
||||||
/*
|
|
||||||
static PyGetSetDef Noddy_getseters[] = {
|
|
||||||
{"first",
|
|
||||||
(getter)Noddy_getfirst, (setter)Noddy_setfirst,
|
|
||||||
"first name",
|
|
||||||
NULL},
|
|
||||||
{"last",
|
|
||||||
(getter)Noddy_getlast, (setter)Noddy_setlast,
|
|
||||||
"last name",
|
|
||||||
NULL},
|
|
||||||
{NULL}
|
|
||||||
};
|
|
||||||
*/
|
|
||||||
/*
|
/*
|
||||||
static PyObject *
|
static PyObject *
|
||||||
Noddy_getfirst(Noddy *self, void *closure)
|
Noddy_getfirst(Noddy *self, void *closure)
|
||||||
|
@ -633,11 +620,6 @@ func (g *cpyGen) genStructMethods(cpy Struct) {
|
||||||
margs,
|
margs,
|
||||||
m.Doc(),
|
m.Doc(),
|
||||||
)
|
)
|
||||||
/*
|
|
||||||
{"name", (PyCFunction)Noddy_name, METH_NOARGS,
|
|
||||||
"Return the name, combining the first and last name"
|
|
||||||
},
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
g.impl.Printf("{NULL} /* sentinel */\n")
|
g.impl.Printf("{NULL} /* sentinel */\n")
|
||||||
g.impl.Outdent()
|
g.impl.Outdent()
|
||||||
|
|
Loading…
Reference in New Issue