Browse Source

Deleted old constants tests for python modules

Yann Weber 4 years ago
parent
commit
3a492e2561
2 changed files with 0 additions and 21 deletions
  1. 0
    16
      python_if.c
  2. 0
    5
      python_if.h

+ 0
- 16
python_if.c View File

@@ -1,11 +1,6 @@
1 1
 #include "python_if.h"
2 2
 
3 3
 PyMethodDef RPNIterExpr_methods[] = {
4
-/*
5
-	{"eval", (PyCFunction)rpnexpr_eval, METH_FASTCALL, "Evaluate an expression"},
6
-	{"reset_stack", (PyCFunction)rpnexpr_reset_stack, METH_NOARGS,
7
-		"Reset stack memory storage (set all items to 0)"},
8
-*/
9 4
 	{"__getstate__", (PyCFunction)rpnif_getstate, METH_NOARGS,
10 5
 		"Pickling method. Return a bytes repr of tokenized expression \
11 6
 and the stack state."},
@@ -19,13 +14,6 @@ PyMemberDef RPNIterExpr_members[] = {
19 14
 };
20 15
 
21 16
 PyGetSetDef RPNIterExpr_getset[] = {
22
-	{"POS_LINEAR", rpnif_get_const, NULL,
23
-	 "", NULL},
24
-	{"POS_XY", rpnif_get_const, NULL,
25
-	 "", NULL},
26
-	{"POS_XDIM", rpnif_get_const, NULL,
27
-	 "", NULL},
28
-
29 17
 	{NULL}
30 18
 };
31 19
 
@@ -200,7 +188,3 @@ PyObject* rpnif_setstate(PyObject *self, PyObject *state_bytes)
200 188
 	Py_RETURN_NONE;
201 189
 }
202 190
 
203
-PyObject* rpnif_get_const(PyObject *self, void* val)
204
-{
205
-	return Py_BuildValue("i", (int)(long int)42);
206
-}

+ 0
- 5
python_if.h View File

@@ -122,10 +122,5 @@ PyObject* rpnif_repr(PyObject *self);
122 122
  */
123 123
 PyObject* rpnif_str(PyObject *self);
124 124
 
125
-/**@brief Constant val getter
126
- * @ingroup python_type
127
- */
128
-PyObject* rpnif_get_const(PyObject *self, void* name);
129
-
130 125
 #endif
131 126
 

Loading…
Cancel
Save