[Python-checkins] CVS: python/dist/src/Modules posixmodule.c,2.157,2.158

Thomas Wouters python-dev@python.org
Sat, 22 Jul 2000 09:39:42 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory slayer.i.sourceforge.net:/tmp/cvs-serv26175/Modules

Modified Files:
	posixmodule.c 
Log Message:

Remove unused helper-function 'posix_strint'.



Index: posixmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/posixmodule.c,v
retrieving revision 2.157
retrieving revision 2.158
diff -C2 -r2.157 -r2.158
*** posixmodule.c	2000/07/21 06:00:07	2.157
--- posixmodule.c	2000/07/22 16:39:39	2.158
***************
*** 496,517 ****
  }
  
- static PyObject *
- posix_strint(PyObject *args, char *format, int (*func)(const char *, int))
- {
- 	char *path;
- 	int i;
- 	int res;
- 	if (!PyArg_ParseTuple(args, format, &path, &i))
- 		return NULL;
- 	Py_BEGIN_ALLOW_THREADS
- 	res = (*func)(path, i);
- 	Py_END_ALLOW_THREADS
- 	if (res < 0)
- 		return posix_error_with_filename(path);
- 	Py_INCREF(Py_None);
- 	return Py_None;
- }
- 
- 
  /* pack a system stat C structure into the Python stat tuple 
     (used by posix_stat() and posix_fstat()) */
--- 496,499 ----